Developer forum

Forum » Feature requests » Stylesheet template paragraph variables

Stylesheet template paragraph variables


Reply

Hi,

 

The idea is to create a list of variable names per stylesheet with a reference to an existing paragraphID from the cms.
These variablenames should be applied in page and paragraphsetup templates according to their current stylesheet.
See the following definition and data example.

Fields:
StylesheetID -> Existing DW stylesheet ID
VariableName -> Variable name to use in  page or paragraphsetup template
                        (<!@--Stylesheet.GlobalNewsList-->)
ParagraphID -> Existing DW ParagraphID

StylesheetID    VariableName        ParagraphID
1                GlobalNewsList        25
1                GlobalCalendar        28               
2                GlobalNewsList        46
2                GlobalCalendar        56

This makes it possible to reuse the same page/paragraphsetup templates in different stylesheets with their own content(news, calendar)
This is usefull for websites of companies which reuse their templates for different divisions with their own news, agenda etc.

I know this already possible via global paragraphs but is not very user friendly and can be time consuming to create/maintain.
With this new method the enduser can focus on content and is not confused with paragraphs which are required on each page.

 

If you have any questions let me know.
 

Regards,

- Remi


Replies

 
Reply

Has somebody read this and understand the functionality i am aiming for?

 

- Remi

 
Nicolai Høeg Pedersen
Reply
r.muller wrote:

Has somebody read this and understand the functionality i am aiming for?

 

- Remi


 

Hi Remi

 

I've read this and I understand what you are looking for. The way to implement design and CSS is under investigation for improvements, and this of course will be taken into consideration.