Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2009-03-23 17:24:16

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Need direction for tackling page

christina.helen wrote:

but when I click on the other thumbnail the next page does not show any of the images.

My guess is that the code on your page is not quite right, could you post that? The forms look OK to me.

(I can’t figure out how to turn on and off the code highlighting – sorry)

You can use bc. for a single code block (without blank lines). If you need to show blank lines in the code, like in your example, you can use bc.., but you need to escape that by starting a new paragraph with p.. Don’t add a new line after the ., just a space.

Edit: if you don’t need all the advantages that colak mentioned of having the images in the db, there is nothing wrong with doing it your way.

Last edited by els (2009-03-23 17:25:58)

Offline

#14 2009-03-23 21:16:45

christina.helen
Member
From: California
Registered: 2009-03-20
Posts: 38

Re: Need direction for tackling page

Here is my code for the Portfolio page template:

<div id="content">
		   <h3>Portfolio</h3>
		   <txp:article form="portfolio_single_article" limit="1" />
           </div>
           <div id="sidebar">
		   <h4>Recent Projects</h4>
			<txp:article_custom section="portfolio" form="portfolio_thumbs" />
	    </div>

Here is my portfolio_single_article form (type=article):

<txp:article_image />
<dl>
	<dt>CLIENT</dt>
	<dd><txp:custom_field name="client" /></dd>
	<dt>DETAILS</dt>
	<dd><txp:custom_field name="details" /></dd>
	<dt>ROLE</dt>
	<dd><txp:custom_field name="role" /></dd>
</dl>
<div class="link"><a class="button" href="<txp:custom_field name="url" />" target="_blank">VIEW SITE</a></div>

Here is the portfolio_thumbs form (type=article):

<txp:if_first_article><ul id="portfolio"></txp:if_first_article>
	<li><a class="opacity" href="<txp:permlink />"><txp:excerpt /></a></li>
<txp:if_last_article></ul></txp:if_last_article>

The portfolio page looks fine “www.helpshack.com/test/portfolio” but when I click on a thumbnail I lose the images. Maybe I’m doing something wrong on the article pages? On the articles I have the custom fields then under Article Image I am writing (exactly) images/roman_lg.jpg and under Excerpt (for thumbnails) <img src=“images/roman_thumb.gif”>. Am I calling them incorrectly?

Last edited by christina.helen (2009-04-01 19:52:14)

Offline

#15 2009-03-23 21:49:09

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Need direction for tackling page

Kind of jumping in here Christina. Be nice if we could see a site but for the image tags in the excerpt try using a full path which means it should work wherever you are in the site. Also, for validation, your image tags should have an “alt” attribute and also be “closed” so try something like:-

<img src="<txp:site_url />images/roman_thumb.gif" alt="" />

Last edited by thebombsite (2009-03-23 21:50:24)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#16 2009-03-23 21:55:09

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: Need direction for tackling page

Change <img src="images/roman_thumb.gif"> to
<img src="<txp:site_url />images/roman_thumb.gif">

Last edited by MattD (2009-03-23 21:56:04)


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#17 2009-03-24 01:32:43

christina.helen
Member
From: California
Registered: 2009-03-20
Posts: 38

Re: Need direction for tackling page

Right now it works on the Portfolio page but when I click one of the thumbnails the images aren’t there. I have tried changing my image tags to <img src="<txp:site_url />images/roman_thumb.gif"> but then they wouldn’t even show on the Portfolio page.

Note: I just previewed this message and when I clicked on my above link I could not see the images. However, when I view the page in Textpattern (View Site) they are there. I apologize if this is so hard to follow.

Offline

#18 2009-03-24 01:38:43

christina.helen
Member
From: California
Registered: 2009-03-20
Posts: 38

Re: Need direction for tackling page

Yippeee! It is working now! I had to change <img src="<txp:site_url />images/roman_thumb.gif"> to <img src="http://www.helpshack.com/test/images/roman_thumb.gif"> and everything works great. Thank you for helping out so much.

Offline

#19 2009-03-24 04:40:14

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: Need direction for tackling page

is test a section? if not your site url may be incorrect in preferences. it should be the rooy of your textpattern site


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

Board footer

Powered by FluxBB