Tag content ?

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
DavidG
Forum Members
Forum Members
Posts: 26
Joined: Wed Aug 20, 2008 10:02 am

Tag content ?

Post by DavidG »

I am building an intranet site and have the following restrictions I want to apply :

1. Only editors can add and edit all pages and menus
2. Normal users should be able to add pages but only to certain parts of the menu
3. Latest added articles will be shown on frontpage , (3 categories required)

I have been using the News module for all of the content on the site that the normal users can add, as this allows me to prevent them from adding or editing the main menu and display the 3 categories on the frontpage.  However, adding pages like this is messy as the formatting is not the same, breadcrums doesn't work and I have to then manually link to news items by adding a menu link.

as the number of articles increases the news main page becomes messy with lots of categories.

Any ideas how I can achieve what I need ?


thanks
nhaack

Re: Tag content ?

Post by nhaack »

Hi David G,

If you like to work on content based on regular pages, the content_dump plug-in might be a solution. However, I am not sure about the user right demands you have. But I use it on two Intranet sites for a comparable purpose.

With content_dump you can set up kinds of views on specific content branches and output their content in any form you like (with smarty). Such things as newest articles from a specific subsection is no problem. But as I said, it is completely content-page based. With it's PROs and CONs. You might want to download it and check the help to see if it suits your needs.

Best
Nils
DavidG
Forum Members
Forum Members
Posts: 26
Joined: Wed Aug 20, 2008 10:02 am

Re: Tag content ?

Post by DavidG »

thanks,

I've had a play with this module. Is there a way to output links to the articles instead of just the content ?
I guess the news module is just not as flexible as I would want it as you can't get the links into the main menu
nhaack

Re: Tag content ?

Post by nhaack »

Hi DavidG,

if you are talking about content dump, there sure is a way :). As I have completely reworked the plug-in, please download newest version, it features a different data structure (which will stay for the future), so I am referring to the new one below:

Use the data element alias {$dump[0]->content->alias} for example. To create a link from it, do something like this in your code:

If mod-rewrite is on:

Code: Select all

<a href="{$dump[0]->content->alias}.htm" title="{$dump[0]->content->title}">read more</a>
If you do not use mod-rewrite, do something like:

Code: Select all

<a href="index.php?page={$dump[0]->content->alias}" title="{$dump[0]->content->title}">read more</a>
If you cycle through all elements with a {foreach from=$dump item=dump} loop, just leave out the array index. In the old version (0.5 and below) you can access the element like: {$dump[0]->alias}

Hope that helps :)

Best
Nils
Post Reply

Return to “The Lounge”