a few quick questions

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
danger
Regular
Posts: 6
Joined: Tue Nov 27, 2007 11:23 pm

a few quick questions

Post by danger »

I need to set up a website that will need to give restricted access to post news on certain pages

for example

joe smith can only post in the handy page

martha thomas only in cooking

this is just a quick example, I dont want to allow users to post on any page except there own.

I've looked around and it seems other phpblogs will require me to have seperate databases or multiple instalations

I dont want to install yet another phpblog just to find it's not going to work

I am very sorry if this came across rude or rather noobish

just simply need to know if I can do that w/s9y

thank you for your time
Don Chambers
Regular
Posts: 3659
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Post by Don Chambers »

Danger - your post is not IMHO rude. You are asking intelligent questions.

If I assume "handy page" and "cooking" are categories for entries, then yes - you can do what you want. You can assign any user to a particular "group". Categories can limit write permissions by group. So, joe smith can belong to the group "handy page editor", and the category "Handy Page" can limit write permission to the group "handy page editor".

There may be more than one way to handle your request, but this was the first one that came to mind. Does that serve your purpose?
=Don=
danger
Regular
Posts: 6
Joined: Tue Nov 27, 2007 11:23 pm

Post by danger »

thank you very much sir


I"m downloading the tar file as we speak, hopefully all goes well.

I was working with wordpress before but it wasn't exactly what I wanted and this will be business oriented so I felt s9y might be a good choice
Don Chambers
Regular
Posts: 3659
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Post by Don Chambers »

Good luck with the install! Bang away at it and never hesitate to ask questions.
=Don=
danger
Regular
Posts: 6
Joined: Tue Nov 27, 2007 11:23 pm

Post by danger »

okay install was fairly simple... had a very poor user error of not putting localhost at the end of my mysql username , doh


I've set up categorys and that is so amazingly easy that you can assign write permission just by assigning a group

now here comes the part i dearly hope will work.

with these pages it seems so easy to just plug in usefull things (calenders/news feeds/etc) rather than using hard code.

Will I be able to do somethign like this

make a template html design (already have it hardcoded) then assign it to where

Author betty writes and she's assigned to the category of cooking

her entry only shows on the cooking page

so basically category assigned pages

**edit**

I'm reading up as I ask I figure its best to just ask now while im reading to save time incase some may know it immediately

and don that is a really nice website I'm looking at it right now :D
Don Chambers
Regular
Posts: 3659
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Post by Don Chambers »

Serendipity uses smarty for templating. There is more info regarding that in the documentation on the homepage, or you can google "smarty template" or "smarty php".

Only entries matching a particular category will be displayed when that category is selected... it already works that way.

If you really want the site to have an entirely different "look" for each category, you can install the plugin Properties/Templates of categories. That will allow you to assign a different template for each category, or allow you to set different template options IF the template has template options.
=Don=
danger
Regular
Posts: 6
Joined: Tue Nov 27, 2007 11:23 pm

Post by danger »

the best way I can explain it is liek so

I cant use frames otherwaise I coudl simply have an Iframe in the middlle

I just want to have a shell per say of a website then have each category as a content


index.html would have the blogs that everyone could gain knowledge from

then from the sidebar I have a few different departments that would link to hier page

once on thier page only the content from thiere category would show

looking up smarty now
Don Chambers
Regular
Posts: 3659
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Post by Don Chambers »

Let's call the index page your "consolidation" page... right? Everything is being aggregated there.

You have a variety of categories... but for either ALL or SOME entries associated with a particular category, you do not want them to show on your "consolidation" page, correct?

If so, install the plugin "Extended properties for entries" Create or edit an entry (article), then check the box marked "hide from entry/overview". That entry will only appear on the category page.
=Don=
danger
Regular
Posts: 6
Joined: Tue Nov 27, 2007 11:23 pm

Post by danger »

ah thank you sir

now all i have to do is learn how to use smarty

Instead of it sayign categories will smarty let me manipulate it to say departments?

I can code html all day long but this will be yet another learning curve

it doesn't seem very hard, more so time consuming to read. I dont know much about php.
Don Chambers
Regular
Posts: 3659
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Post by Don Chambers »

I think you will find smarty to be very easy to deal with... it is basically html with some logic built into it.

You need to decide how important it is to change the vocabulary from "category" to "department"... you CAN make the change, but you will need to make those modifications again if/when you upgrade to a newer version of s9y.

In the folder /lang/ AND /lang/utf-8 is a file named serendipity_lang_en.inc.php. There a number of variables using the word "category" and "categories".
=Don=
danger
Regular
Posts: 6
Joined: Tue Nov 27, 2007 11:23 pm

Post by danger »

It needs to look more like a website than a blog
Post Reply