Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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

#2 2006-05-25 04:19:58

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: Test cases: photoblog

Zem,
Hopefully this applies.
This is the portfolio page for community.artiswork.org

page

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)


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

#4 2006-05-27 14:12:21

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

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.

:)


Offline

#5 2006-05-27 15:07:57

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,350
Website GitHub Mastodon Twitter

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

#6 2006-06-19 20:56:12

cnolle
Archived Plugin Author
Registered: 2004-03-21
Posts: 87
Website

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

Board footer

Powered by FluxBB