Support Forums

pages.php in accordion

This is a discussion on pages.php in accordion within the TemplateCodes forums, part of the Third Party Support category; Hi David, For some reason I cannot let the pages show in the accordion.... I've tried the following: {foreach from=$templatepages ...


Go Back   68 Classifieds Forums > Third Party Support > TemplateCodes

Reply
 
Thread Tools Display Modes
Old 09-24-2009, 12:48 PM   #1
Senior Member
 
pschievink's Avatar
 
Join Date: Mar 2007
Location: Netherlands, Friesland
Posts: 139
Rep Power: 19
pschievink is on a distinguished road
Default pages.php in accordion

Hi David,

For some reason I cannot let the pages show in the accordion....

I've tried the following:

{foreach from=$templatepages item="entry"}
{if $entry.pageID==2}
<li><a class="page" href="{$smarty.const.URL}/pages.php?pg={$entry.pURI}">{$entry.pPageTitle}</a></li>
{/if}
{/foreach}

I got this from another forumthread but it still doesn't show and I don't know why...
Displaying particular pages in Accordion menu
__________________
Greetz...Pieter

v4.1.6 Developer (Fluid-Lime + Add-ons)
v4.1.6 Developer Fluid-Lime + Add-ons (testing)
Paardenverkoop.net, .be, .org, .biz
-----------------------------------------
"What's on your mind?...Skull.....skin....hair..... "
pschievink is offline   Reply With Quote
Old 09-24-2009, 01:09 PM   #2
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,053
Rep Power: 76
seymourjames is a jewel in the rough
Default

Details please. Are you running the SEO module? Is it a live site, etc. If you have the SEO module you need to correct a bug in it which will be issued in its next release from my understanding. This was pretty clear in the bug fix email I sent out when the sitemap module is used with the seo module. And I think it was put on the forum too. What happens if you take the test off? Do the links generate? If you are using the SEO module then check this

Find this line

"'(?<!/)".URL."/pages.php\?pg=([a-zA-Z0-9]*)'",

and replace with this

"'(?<!/)".URL."/pages.php\?pg=([a-zA-Z0-9_-]*)'",
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates and list your 68C site on ClassifiedCodes.com
seymourjames is offline   Reply With Quote
Old 09-24-2009, 01:26 PM   #3
Senior Member
 
pschievink's Avatar
 
Join Date: Mar 2007
Location: Netherlands, Friesland
Posts: 139
Rep Power: 19
pschievink is on a distinguished road
Default

David,

It's a live site but only I can see it...due to no dns....(I think)
But no, I don't run the SEO...
__________________
Greetz...Pieter

v4.1.6 Developer (Fluid-Lime + Add-ons)
v4.1.6 Developer Fluid-Lime + Add-ons (testing)
Paardenverkoop.net, .be, .org, .biz
-----------------------------------------
"What's on your mind?...Skull.....skin....hair..... "
pschievink is offline   Reply With Quote
Old 09-24-2009, 01:39 PM   #4
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,053
Rep Power: 76
seymourjames is a jewel in the rough
Default

Well then something is very strange - does it work if you do not do the test for page 2? Just as normal.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates and list your 68C site on ClassifiedCodes.com
seymourjames is offline   Reply With Quote
Old 09-24-2009, 02:00 PM   #5
Senior Member
 
pschievink's Avatar
 
Join Date: Mar 2007
Location: Netherlands, Friesland
Posts: 139
Rep Power: 19
pschievink is on a distinguished road
Default

I don't know what you mean by test but,
I do know that the hard link does work...

<li><a class="page" href="{$smarty.const.URL}/pages.php?page=2">{$smarty.const.LANG_TERMS}</a></li>
__________________
Greetz...Pieter

v4.1.6 Developer (Fluid-Lime + Add-ons)
v4.1.6 Developer Fluid-Lime + Add-ons (testing)
Paardenverkoop.net, .be, .org, .biz
-----------------------------------------
"What's on your mind?...Skull.....skin....hair..... "
pschievink is offline   Reply With Quote
Old 09-24-2009, 02:22 PM   #6
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,053
Rep Power: 76
seymourjames is a jewel in the rough
Default

{if $entry.pageID==2}
<li><a class="page" href="{$smarty.const.URL}/pages.php?pg={$entry.pURI}">{$entry.pPageTitle}</a></li>
{/if}

The test. Remove the red bits.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates and list your 68C site on ClassifiedCodes.com
seymourjames is offline   Reply With Quote
Old 09-25-2009, 05:10 AM   #7
Senior Member
 
pschievink's Avatar
 
Join Date: Mar 2007
Location: Netherlands, Friesland
Posts: 139
Rep Power: 19
pschievink is on a distinguished road
Default

David,

Just tested the site without {if} statement but same result....nothing
Did leave the {foreach} though....
-------------------------------------------------
EDIT
Just tested it without the {foreach} got a result....just the { page image}
but no page title or number....
__________________
Greetz...Pieter

v4.1.6 Developer (Fluid-Lime + Add-ons)
v4.1.6 Developer Fluid-Lime + Add-ons (testing)
Paardenverkoop.net, .be, .org, .biz
-----------------------------------------
"What's on your mind?...Skull.....skin....hair..... "

Last edited by pschievink; 09-25-2009 at 05:14 AM.
pschievink is offline   Reply With Quote
Old 09-25-2009, 05:31 AM   #8
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,053
Rep Power: 76
seymourjames is a jewel in the rough
Default

Well let me take a look - email your 68C admin control panel details and FTP info to me at support. There is no reason this does not work from what you have posted unless you have changed something else.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates and list your 68C site on ClassifiedCodes.com
seymourjames is offline   Reply With Quote
Old 09-25-2009, 05:40 AM   #9
Senior Member
 
pschievink's Avatar
 
Join Date: Mar 2007
Location: Netherlands, Friesland
Posts: 139
Rep Power: 19
pschievink is on a distinguished road
Default

Just emailed the ftp through the ticket system...
The one that is already open between us....
__________________
Greetz...Pieter

v4.1.6 Developer (Fluid-Lime + Add-ons)
v4.1.6 Developer Fluid-Lime + Add-ons (testing)
Paardenverkoop.net, .be, .org, .biz
-----------------------------------------
"What's on your mind?...Skull.....skin....hair..... "
pschievink is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Display Sub Category in Accordion hel68c Modules / Plugins / Modifications 7 01-10-2010 06:28 AM
Displaying particular pages in Accordion menu skekum TemplateCodes 3 09-14-2009 11:33 AM
Accordion menu item if user logged in skekum TemplateCodes 2 08-20-2009 08:41 AM


All times are GMT -4. The time now is 10:48 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0