Page 1 of 1

[INCLUDE ID:NUM]

Posted: Mon 11. Apr 2005, 15:29
by jsw_nz
I have come across a situation where the administrator, for security reasons, has set allow_url_fopen in php.ini to false.....basically disabling the URL tag. I have used the URL tag in previous installations to bring content from other sections of the same site. Although Wcms has a bunch of nice ways to list links to articles, it would be nice to have a rep tag that displays them, which brings content from other sections of the site. In essense, it would need the article ID as the parameter, so the tag might be something like:

Code: Select all

[INCLUDE ID:NUM]
I have a task of showing (on the home page) an article that exists in another section, The query is based on the day of the week, so basically I was thinking to casing the parameter $whichDay = time("l') translate to the appropriate article ID, and then display the contents of that article (consists of only title, subtitle & summary). I would imagine it can be hard coded, but the concept of displaying articles based on the ID parameter might be a nice additional feature, bypassing the use of URL tag to display internal articles/content....

Just an idea.....

Posted: Sat 16. Apr 2005, 01:09
by pSouper
the instancing of articels/contentparts is on the way as I understand.
i have no ideauf this will solve your specific problem but it will provide the same effect.

Posted: Sat 16. Apr 2005, 01:59
by jsw_nz
Hi pSouper,

Yes, OliG did mention this in a reply to another thread that I posted related to this one. In his own words, it is "something I have in preparation"...
which sounds great. I did manage to create a php script to at least pull the title, subtitle, summary and image from the content/images directory. But this exists inside a wrapper article...so the wrapper requires adding a manual redirection parameter....certainly not perfect, but for my requirements, was just the trick:

http://www.phpwcms.de/forum/viewtopic.php?t=6552

Cheers :)