Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-01-06 10:33:54

kchan108
New Member
From: Wellington, New Zealand
Registered: 2007-09-23
Posts: 6
Website

Navigation: Section and smd_gallery

hello.

I’m in the middle of putting site together, seems to be a navigation question and one with smd_gallery which is tied to the navigation section. I’m not a code person, and i have a Basic level on textpattern.

The site in question is http://stanchan.keanechan.com/

The left side “ gallery “ section.

Looking for a best way of creating this so the pages loads.

What I did was….

Created sections, and using the Txp:section tag to create the links to the articles. Within the article is the smd_gallery tag pointing to a pool of images in categories.

<txp:section_list class = “nav_style” sections =“g-c-animals, g-c-calligraphy, g-c-figures, g-c-flowers, g-c-landscape, g-c-misc”
/>

Article

<txp:smd_gallery category=“c-animals” form=“gallery_smd” />

With a from control

<a rel=“lightbox-{category}” href=”{url}” title=“A picture of {caption}”> <txp:thumbnail id=”{id}” />
</a>

The problem…

ONE.

The light box works fine in the set of 4 images ( Chinese Animals ). But once clicked though into a gallery (left side navigation), somehow it loses the slimbox. Further investigation via firebug for firefox…. The javascript did not load, as it perviously did in the home page.

Gave me error on the first line, seems to be look for some form or tag???

“ <pre>Tag error: <b>&lt;txp:linklist wraptag=&quot;p&quot; /&gt;</b> -> <b> Textpattern Notice: Form not found: plainlinks on line 1517</b></pre><pre>Tag error: <b>&lt;txp:linklist wraptag=&quot;p&quot; /&gt;</b> -> <b> Textpattern Notice: Form not found: plainlinks on line 1517</b></pre><pre>Tag error: <b>&lt;txp:linklist wraptag=&quot;p&quot; /&gt;</b> -> <b> Textpattern Notice: Form not found: plainlinks on line 1517</b></pre>”

Any ideas?

TWO.

I had tried to create a nav list by

<txp:category_list label=“Categories” parent=“chinese-gallery” section=“chinese-gallery” this_section=“1” type=“image” />

this gave me a list of possible links, but I do not know how to tie it back up with an output article….. Thus I made the txp:section above….

Is there a better way of creating this navigation which allows me to load the required scripts.

I can provide more details, if need be.

Many thanks in advance.
Keane

Offline

#2 2010-01-06 12:59:40

joebaich
Member
From: DC Metro Area and elsewhere
Registered: 2006-09-24
Posts: 507
Website

Re: Navigation: Section and smd_gallery

Your call to jQuery, for instance is going to http://stanchan.keanechan.com/g-c-landscape/js/jQuery.js on the article page. Suggest that you replace the calls in your page template(s) to <txp:site_url />/js/jquery.js. and similarly with the call to lightbox.js. Note the lower case ‘Q” in jquery.js, that’s normally the name of the file.

Offline

#3 2010-01-07 20:58:42

kchan108
New Member
From: Wellington, New Zealand
Registered: 2007-09-23
Posts: 6
Website

Re: Navigation: Section and smd_gallery

Thank you. That is a very handy tip and I manage to get the basic bare bones of the site to work.

Offline

Board footer

Powered by FluxBB