Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2005-10-29 23:16:07
- RhYnO
- New Member
- Registered: 2005-06-12
- Posts: 5
Portfolio Development
Now I know this has been posted on 100 times and I thought I was paying attention and taking heed of what’s already been set up. But it either doesn’t apply, at least as far as I can tell, or I thought I did it write based off of other posts. What I want to do is establish a portfolio for my website. The organization of the portfolio section is as follows. On the main page of the portfolio I want to have 4 articles, 1 per category. Each article has a blurb about the category and then all the thumbnails for that category in chronilogical order.
Right now I have all the articles set up and I have them to use a custom article list for their category. But it will not do it. I have articles that are listed in each category and each have the designated picture in a custom field to reference.
The body of each category blurb is as follows:
<txp:article_custom form="project.thumb" category="casestudy" section="work" sortby="Posted" sortdir="desc" wraptag="ul" breaktag="li" />
Then in project.thumb form I handle figuring out what the SRC for the thumbnail should be based on the article by doing:
<txp:permalink>a<img src="../images/portfolio/<txp:custom_field name="short" />/thumb.jpg" alt="<txp:title />" /></txp:permalink>
Anyone see why it is that none of the thumbnails show up?
(Edit: updated your post so your code displays properly. :) -Mary)
Last edited by Mary (2005-10-30 00:02:41)
Offline
Re: Portfolio Development
I’m not sure about getting this working for you but I see an error. It should be <code><txp:permlink></code> rather than <code><txp:permalink></code> and should that “a” be there after the first permlink tag?
I’m never keen on using “../” either. Couldn’t you use <code><txp:site_url />images/portfolio……</code>?
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#3 2005-10-30 15:29:11
- RhYnO
- New Member
- Registered: 2005-06-12
- Posts: 5
Re: Portfolio Development
Oy vey.
That did it. Stupid freaking spelling mistake, and all was lost.
Thanks for the help.
Offline
#4 2005-10-30 15:42:06
- RhYnO
- New Member
- Registered: 2005-06-12
- Posts: 5
Re: Portfolio Development
Now I’ve got a slightly different issue. The headers of each category I have set up are not showing up if there are thumbnails showing.
I just have [h2]title[/h2] body where body is the custom article list. Why would that cause the title to disappear?
Last edited by RhYnO (2005-10-30 15:42:32)
Offline
Re: Portfolio Development
I need more info for that. Use < code>< /code> (without the spaces to display your code). I need to see the page template code for this and maybe your CSS for it as well.
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#6 2005-10-30 22:10:10
- RhYnO
- New Member
- Registered: 2005-06-12
- Posts: 5
Re: Portfolio Development
page:
<code>
<txp:article id=“30” form=“portfolio_category” />
<txp:article id=“31” form=“portfolio_category” />
<txp:article id=“32” form=“portfolio_category” />
<txp:article id=“33” form=“portfolio_category” />
</code>
portfolio_category form
<code>
<h2><txp:title /></h2>
<txp:body />
</code>
sample article
<code>
<txp:article_custom form=“project.thumb” category=“casestudy” section=“work” sortby=“Posted” sortdir=“desc” wraptag=“ul” breaktag=“li” />
</code>
Offline
Pages: 1