Content to UDT elegantly, page or GCB?
Posted: Wed Feb 23, 2011 2:37 pm
I need to merge HTML-content that is editable in the CMSMS admin system into output that is produced by UDT. Each content is quite short, 2-3 paragraphs, each 5-10 rows. The content will not be shown elsewhere and which one is chosen depends on what the UDT does.
I could get page in following http://forum.cmsmadesimple.org/viewtopi ... 07#p237407 as well as global content block following http://forum.cmsmadesimple.org/viewtopi ... 52#p228652 .
Maybe it's just me
but somehow I don't like either. A page feels too much, it's not a page but just part of it. On the other hand the trick to do GCB is not pretty to me, calling some 'random' module to get content does not sound too 'pure'.
UDT should be able to test if content X exists, so if it not, it could do something instead saying: "Smarty error: unable to read resource: globalcontent..." as can happen with GCB method.
Please advise me with this problem? Or is there third, an elegant and clean option? I wouldn't mind to use an extra module, providing it was widely used and updates would be available if needed after core changes.
I could get page in following http://forum.cmsmadesimple.org/viewtopi ... 07#p237407 as well as global content block following http://forum.cmsmadesimple.org/viewtopi ... 52#p228652 .
Maybe it's just me

UDT should be able to test if content X exists, so if it not, it could do something instead saying: "Smarty error: unable to read resource: globalcontent..." as can happen with GCB method.
Please advise me with this problem? Or is there third, an elegant and clean option? I wouldn't mind to use an extra module, providing it was widely used and updates would be available if needed after core changes.