Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-05-24 23:05:43
- zem
- Developer Emeritus

- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Test cases: photoblog
As per this post, use this thread for posting sample photoblog templates and forms.
Alex
Offline
Re: Test cases: photoblog
Zem,
Hopefully this applies.
This is the portfolio page for community.artiswork.org
appropriate forms:
php_cat_title
front_thumb
worklist
sticky
work
intro :
<code><h3 class=“content-title”>
<txp:title /></h3>
</code>
too short to paste :)
And I think that covers it.
There are a lot of detailed layers there.
I haven’t touched it in awhile, but you can see from how it works that it simulates a three level nav with sections and categories.
I had a ton of help from Mary on this one.
:)
Last edited by ma_smith (2006-05-27 14:09:05)
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
#3 2006-05-27 05:52:18
- zem
- Developer Emeritus

- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: Test cases: photoblog
Thanks.
I’m not quite sure what to make of this at first glance: there’s a lot of code there, and it’s not obvious which bits represent the image gallery, and which are just general design and navigation.
Alex
Offline
Re: Test cases: photoblog
Hey,
Zem no problem. Sorry, I should have commented the page better.
I have revised it with better commenting and the page link up there is this one and its new.
email me if you have specific questions.
Hope its helpful.
disclaimer: I had a serious case of divitis in there.
There’s some poor markup. As it was the first txp site I had done.
And the first real work with xhtml.
:)
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
Re: Test cases: photoblog
This is a method with which a photoblock could easilly be set up
In the default page:
<code><txp:if_article_list>
<txp:article_custom form=“about” status=“sticky” id=“15” />
<txp:article limit=“10” form=“thumbs” />
</txp:if_article_list>
<txp:if_individual_article><txp:article /></txp:if_individual_article></code>
The thumbs form:
<code><div class=“pct”><txp:permlink><txp:zem_article_thumb /></txp:permlink></div></code>
The about form
<code><txp:body /></code>
Basic css of the default (thumbs) page
<code>.pct {float:left;margin:3px;}</code>
Simple but it works;)
>Edit… Although I have used zem’s plugin for this, the same result could be achieved with this thumbs form:
<code><div class=“pct”><txp:permlink><txp:excerpt /></txp:permlink></div></code>
The problem is that the excerpts field will not be able to contain anything else but one thumb.
Last edited by colak (2006-05-27 15:26:26)
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: Test cases: photoblog
Very simple setup. No plugins (well perhaps with the exception of upm_img_popper which is essential)
As a form:
<code>
<div class=“content”>
<txp:body />
<div class=“info”>
<txp:link_to_prev><img src=“images/btnleft.jpg” height=“20” width=“20” /></txp:link_to_prev>
<txp:link_to_next><img src=“images/btnright.jpg” height=“20” width=“20” /></txp:link_to_next>
</div>
</div>
</code>
Each photograph is posted as a new article.
Last edited by cnolle (2006-06-19 20:56:36)
Offline
Pages: 1