{SHOW_CONTENT:CP,ID} does not work on my side....

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
pasci
Posts: 10
Joined: Sun 19. Nov 2006, 03:47
Location: Baden - Switzerland

{SHOW_CONTENT:CP,ID} does not work on my side....

Post by pasci »

Hi all...

I've got a small question about the SHOW_CONTENT replacement tag...

I have Version 1.2.8 and wanna insert a "Artikelliste" content Part to a Frontend Template for showing the list of all Newsentries on the left....

I entered the following RT into the {LEFT} field in the template:
"{LEFT}{SHOW_CONTENT:CP,16}"

But the content Part is not shown, when I go to the page...
Do I have to do something else for making it work, what am I doing wrong?
Did I forget to do something additional?

Thanks for your help! :!: :?: :!:
Der Wolf, das Lamm, auf der grünen Wiesäää... HURZ!!!
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

"conf.inc.php"

Code: Select all

$phpwcms['allow_cntPHP_rt']   = 1; //allow PHP replacement tags and includes in content parts
And, of course, no "quote" marks around Rep Tags... LOL ! :P

Oops... missed the part about "template". Ignore my recommendation.
Last edited by DeXXus on Sun 19. Nov 2006, 10:17, edited 1 time in total.
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post by flip-flop »

Hi ,

please have a look: http://www.phpwcms.de/forum/viewtopic.php?p=72571#72571
Please be shure that you did used the ID´s of CP´s for this construktion {SHOW_CONTENT:CP,16,..,..}
The tag´s {SHOW_CONTENT:CPA,16,..,..} and {SHOW_CONTENT:CPAD,16,..,..} use the article ID´s.!!!!

$phpwcms['allow_cntPHP_rt'] don´t exert influence using this tag at the template.

Whitch CP did you use for "Artikelliste"?

Regards Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
pasci
Posts: 10
Joined: Sun 19. Nov 2006, 03:47
Location: Baden - Switzerland

Post by pasci »

Hi Knut!

Thanks for your help.

I saw that topic you wrote, but I'm not shure, if I do right.
In the following screenshot you can see what I wanna do exactly...

Image

Wanna show the red marked content in all articles in the subfolder "newsentries"... (instead of making Contentpart Aliases like ID:20 and ID:22)

In the screenshot you also can see that I use "Artikelmenu" CP.
Is it correct, that I have to write {LEFT}{SHOW_CONTENT:CP,24} into the template in the admin section?

If I go to any of the pages in the "News"-Folder then I get following message on my screen:
"error while getting link article list: SELECT article_id, article_title, article_cid, article_summary FROM phpwcms_article WHERE article_public=1 AND article_aktiv=1 AND article_deleted=0 AND article_cid=3 AND article_beginNOW() AND article_id != ORDER BY article_sort ASC"

Tks for help...
cheers.. pascal
Der Wolf, das Lamm, auf der grünen Wiesäää... HURZ!!!
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post by flip-flop »

Hi pascal,

you are right, I think that´s an program error. Using the Tag {SHOW_CONTENT:CP,ID} inside an template and have a call to "Artikelmenü" this error is produced. :(
Using it inside a CP it works. (I have informed O.G.).

Regards Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
User avatar
Oliver Georgi
Site Admin
Posts: 9918
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

Hm,

OK, habs - glaube ich ;-)

in der Datei ext.func.inc.php muss in der Funktion showSelectedContent() noch folgende Zeile rein - die globale Variable fehlt sonst:

Code: Select all

global $aktion;
Sieht dann also angerissen so aus:

Code: Select all

function showSelectedContent($param='') {

	global $template_default;
	global $db;
	global $content;
	global $block;
	global $phpwcms;
	global $aktion;

	if($cp = explode(',', $param)) {
	...
Oliver
Last edited by Oliver Georgi on Mon 20. Nov 2006, 09:36, edited 1 time in total.
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post by flip-flop »

Yes it works perfectly. :!: (GT mode is also running now in SHOW_CONTENT). :D :D

Regards Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

:D :) -=SUPER=- :D :)
pasci
Posts: 10
Joined: Sun 19. Nov 2006, 03:47
Location: Baden - Switzerland

Post by pasci »

yihaaa, schnurrt wie ne Katze! Tks for help!!!
cheers... pascal
Der Wolf, das Lamm, auf der grünen Wiesäää... HURZ!!!
Post Reply