Developer forum

Forum » Feature requests » A new version of Global:Paragraph and Global:Page

A new version of Global:Paragraph and Global:Page


Reply
SORRY SHOULD HAVE BEEN UNDER GENERAL REQUESTS

Hi,

Using Global:Page.Content(1234) to get the content from a page or Global:Paragraph.Content(5678) to get the content from a given paragraph is a strong feature.

I would love to get two cousins for those two tags:
Global:Page.Content('Login') and
Global:Paragraph.Content('np@dynamicweb.dk')

They would simply do a SQL on the Page and Paragraph tables returning content from pages and paragraph whose pagename and paragraphname matched the given "key".

You might say: "But that may return content from more than one page and pargraph!"
I say: "Yes! And that is a good thing! This tag is inserted by a (certificed) partner who should know this. So if he/she wants to use this function he/she knows what he/she is doing! You may for instance avoid using "stupid" keys like "News". Sometimes it may even become a cool feature to get paragraphs with a given name.

In the above example for instance the paragraph version gets a paragraph where you are likely to get information about Nicolai.

Another variant
Perhaps you may also add overloaded versions which takes another parameter indicating the areaID (or name :-)):
Global:Page.Content('Login', 1) and
Global:Paragraph.Content('np@dynamicweb.dk', 'Denmark')

/Sten

Replies