Support Forums

pages.php in accordion don't show?

This is a discussion on pages.php in accordion don't show? within the TemplateCodes forums, part of the Third Party Support category; I've a problem with the pages again, I used the : <li><a class="page" href="{$smarty.const.URL}/pages.php?pg=2">Algemene Voorwaarden</a></li> and <li><a class="page" href="{$smarty.const.URL}/pages.php?pg=5">Paardenlinks</a></li> And ...


Go Back   68 Classifieds Forums > Third Party Support > TemplateCodes

Reply
 
Thread Tools Display Modes
Old 10-19-2009, 04:32 AM   #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 don't show?

I've a problem with the pages again,

I used the :
<li><a class="page" href="{$smarty.const.URL}/pages.php?pg=2">Algemene Voorwaarden</a></li>
and
<li><a class="page" href="{$smarty.const.URL}/pages.php?pg=5">Paardenlinks</a></li>

And tis works but, when I use it in the frontend I get an error...
For some reason it cannot be found...

Why?

This is the live site : Paardenverkoop.net, .be, .org, .biz
__________________
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 10-19-2009, 05:09 AM   #2
Senior Member
 
pschievink's Avatar
 
Join Date: Mar 2007
Location: Netherlands, Friesland
Posts: 139
Rep Power: 19
pschievink is on a distinguished road
Default

Quote:
Originally Posted by pschievink
I've a problem with the pages again,

I used the :
<li><a class="page" href="{$smarty.const.URL}/pages.php?pg=2">Algemene Voorwaarden</a></li>
and
<li><a class="page" href="{$smarty.const.URL}/pages.php?pg=5">Paardenlinks</a></li>

And tis works but, when I use it in the frontend I get an error...
For some reason it cannot be found...

Why?

This is the live site : Paardenverkoop.net, .be, .org, .biz
Found the problem....

For some reason the "?pg=2" and more don't work... it's "?page=2" .....

But why...?
__________________
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 10-19-2009, 05:17 AM   #3
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,148
Rep Power: 77
seymourjames is a jewel in the rough
Default

like this

***htp://yourdomain.com/pages.php?pg=mypage****

the "mypage" is the URI of the page which is defined in your admin control panel.

In general it is placed in the acordion or the footer like this

{foreach from=$templatepages item="entry"}
<li><a class="page" href="{$smarty.const.URL}/pages.php?pg={$entry.pURI}">{$entry.pPageTitle}</a></li>
{/foreach}
__________________
"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 10-19-2009, 06:10 AM   #4
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 did what you said and it works but for some reason the title stay the same....

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

The titles are both "Paarden Links" yet ID-2 should be "Algemene voorwaarden"...

Als did it like this.....Same outcome,

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

What's the problem here?
__________________
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 10-19-2009, 06:55 AM   #5
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,148
Rep Power: 77
seymourjames is a jewel in the rough
Default

The problem is you are not doing it as I am suggesting. Look at the default template. What does it show in the sidebar on the layout.tpl??

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

in the page editor put a unique URI for the page you are making. The only difference is that in the accordion, we aply a styling class like this

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

You do have the relevant accordion don't you for version 4.1.6. ? The relevant parts of the accordion and indeed the footer are defined like this

1. accordion

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

2. footer

{foreach from=$templatepages item="entry"}
<a href="{$smarty.const.URL}/pages.php?pg={$entry.pURI}">{$entry.pPageTitle}</a>  
{/foreach}
__________________
"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 10-20-2009, 04:03 AM   #6
Senior Member
 
pschievink's Avatar
 
Join Date: Mar 2007
Location: Netherlands, Friesland
Posts: 139
Rep Power: 19
pschievink is on a distinguished road
Red face

You got to help me....
Maybe it's short minded but I can't find nothing on the footer....

Only thing I can find is this in the layout....

{modulehook function="tpl_layout_footer" options=""}

So what now?
__________________
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 10-20-2009, 06:43 AM   #7
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,148
Rep Power: 77
seymourjames is a jewel in the rough
Default

Accordion.tpl

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

footer in layout.tpl

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

I don't think it could be any simpler. You either have this code in acordion.tpl and the layout.tpl or you don't. If you don't then write to support at templatecodes.com .

And it would help if you actually turned some extra pages on (let the links show) so we can see the source on your site. Giving your site without showing the problem is of no use.
__________________
"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 10-20-2009, 07:11 AM   #8
Senior Member
 
pschievink's Avatar
 
Join Date: Mar 2007
Location: Netherlands, Friesland
Posts: 139
Rep Power: 19
pschievink is on a distinguished road
Default

Done and working...
__________________
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 10-20-2009, 07:19 AM   #9
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,148
Rep Power: 77
seymourjames is a jewel in the rough
Default

Good but why are you not putting a URI in the page editor panel on this link but you are on the other one?

Algemene Voorwaarden

Is it really called "page=2" , Have you in fact changed the code in the accordion.tpl to what it is meant to be?
__________________
"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 10-21-2009, 04:27 AM   #10
Senior Member
 
pschievink's Avatar
 
Join Date: Mar 2007
Location: Netherlands, Friesland
Posts: 139
Rep Power: 19
pschievink is on a distinguished road
Default

Hi,

I whas a bit to eager.....

But now I know what the problem is...
It has to do with the first four pages in the admin section...
For some reason it won't show them....that's why I had that problem with the
"Terms & Conditions" that I altered it to "algemene voorwaarden" but it will not show....

Now I've made a new page just like paarden-links and it shows....

Any Ideas why?

Ps: I use the script that is in the accordion:
{foreach from=$templatepages item="entry"}
<li><a class="page" href="{$smarty.const.URL}/pages.php?pg={$entry.pURI}">{$entry.pPageTitle}</a></li>
{/foreach}
__________________
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
Show Subcategory Ads in Parent Browse Categories Pages cat Customizations 10 01-09-2010 04:23 PM
pages.php in accordion pschievink TemplateCodes 8 09-25-2009 05:40 AM
Displaying particular pages in Accordion menu skekum TemplateCodes 3 09-14-2009 11:33 AM
Pagenation show 20 pages bowers01 Technical Support 1 08-05-2009 08:43 AM


All times are GMT -4. The time now is 03:25 AM.


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