Gossamer Forum
Quote Reply
Second Page
Hello!

Whats the easiest way to add a second detailed page? (or more....)
I recall there used to be a plugin, couldnt find it. (it used to break the breadcrumb for detailed page but Andy made a fix for it).
I recall it was free... If its free, Anyone have it handy? Could you please post it.
Thanks

Juan Carlos
Quote Reply
Re: [Gorospe] Second Page In reply to
Hi,

Mmm, I'm not sure where that went. An easier way (if using mod_rewrite), is to use a clever rewrite :)

Code:
^Detailed2/([0-9]+)\.html$ /cgi-bin/links/page.cgi?g=Detailed/$1.html;page2=1 [L]

Then duplicate detailed.html to detailed2.html, and then add this to the top of detailed.html:

Code:
<%if page2%>
<%include detailed2.html%>
<%endparse%>
<%endif%>

Untested, but should work Angelic

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Second Page In reply to
That looks simple enough. I will try it.

BTW, would any info in it be searchable? Im guessing as long as its in the DB it would be. But would it land on the second page or always on the main one?

Youve just opened pandoras box with this.
I was running into trouble with Google Maps since I load 2 maps per page by default by page. And I was getting too many calls from the API.
Now I can have a lightbox type of page load only when called for. Im sure the load will go down... cool.
And so many other things now too... interesting.

Hmmm do you have all the rewrite rules handy? I was thinking static til now.
And looking for rewrite in the forum doesnt help much. Too many results.

As always, thanks.
Quote Reply
Re: [Gorospe] Second Page In reply to
Hi,

As long as the info is still in the DB, it would show up in the search results fine.

Quote:
But would it land on the second page or always on the main one?

It would land on the primary one, but you could just link from the primary one, or even in link.html (to the secondary page)

Quote:
Hmmm do you have all the rewrite rules handy? I was thinking static til now.
And looking for rewrite in the forum doesnt help much. Too many results.

To run the whole site via mod_rewrite? I normally charge to set that up Angelic

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Second Page In reply to
Ok, thanks Andy.

Didnt mean to imply anything free or undervalue your work by asking.
Its good that you charge for your knowledge, Im all for it as I have always thanked you via paypal for just about any help youve given me. And Im happy for you.

Im localy redisinging right now. Ill let you know when Im ready to go plublic for the rewrites.

Everythings cool.

Thanks,

JC
Quote Reply
Re: [Gorospe] Second Page In reply to
Tried your code.

I placed the

Code:
<%if page2%>
<%include detailed2.html%>
<%endparse%>
<%endif%>

At the VERY top of the old detailed.html, before anything.

Now, going to:
Code:
<a href="detailed2.html">detailed 2</a>

Doesnt do anything. I do get a new URL, but the whole original detailed.html shows up.

By looking at the code, should all info for detailed and detailed2 be on the same templete document? Divided by the ifs?
Or should each detailed contain its own code?

Im calling it directly as ./page2.html or ./detaled2.html
Both work and both show the original detailed.html

Thanks
Quote Reply
Re: [Gorospe] Second Page In reply to
Can you PM me some example URL's, and the rule you are using? Sounds like you've probably just got it configured wrong :)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!