ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Gallery output not xhtml 1.0 strict

September 05, 2007 11:21am

Subscribe [1]
  • #1 / Sep 05, 2007 11:21am

    Adam George

    283 posts

    I’m using this code to output a gallery image:

    {exp:weblog:entries weblog="target_cover" limit="1" orderby="url_title" sort="desc" disable="member_data|trackbacks"}
    {related_entries id="target_cover_image"}
    {medium_url}
    {/related_entries}
    {/exp:weblog:entries}

    Although I cose the image tag (... >) it still outputs like this:

    <a href="http://ww2.tear.org.au/images/gallery/target/2007-3.jpg">http://ww2.tear.org.au/images/gallery/target/2007-3.jpg</a>

    Can this behaviour be changed? I’d like it to be compliant with xhtml 1.0 strict.

    Thanks

  • #2 / Sep 05, 2007 11:58am

    Robin Sowell

    13255 posts

    What version/build are you running?  I just tried to replicate on my test page here:

    {exp:weblog:entries weblog="reading" limit="2" orderby="url_title" sort="desc" disable="member_data|trackbacks"}
    {related_entries id="gal_test"}
    {medium_url}
    {/related_entries}
    <hr>
    {/exp:weblog:entries} 
    
    renders as:
    
    <a href="http://media-cow.com/images/galone/downer7_medium.gif">http://media-cow.com/images/galone/downer7_medium.gif</a>

    Spot any differences?  Any extensions at play?

  • #3 / Sep 06, 2007 3:26am

    Adam George

    283 posts

    Hi Robin, thanks for the reply.

    Hmmm, that’s interesting, I had my image folder set to 775, which was (I think) causing the thumbnails not to be created. When I changed it to 777 (which I’d rather not do), the thumnails started being created again for new images. Then I went back and deleted and re-added that image, and now I get the xhtml compliant code.

    Is it necessary for the folder to be set at 777 for thumbnails to be created? (The main image upload fine, just the thumbnail was not being created).

    I’m using:
    Version: 1.6.0
    Build:  20070815

    I do have extensions installed, but none which interact with the gallery.

  • #4 / Sep 06, 2007 10:44am

    Robin Sowell

    13255 posts

    Hm- well, it depends on the server whether it needs to be 777 or 775- basically, it needs to be writable.  I’ve a cpanel account where it needs to be 777, but on my enginehosting account, it’s 775.  So- it just depends on the server.  That said- I do find it curious that the image will upload at 777, but the thumbnail won’t create.  I’d imagine it needs to be writable for either to occur.

    You might, just to narrow things down, set it back to 775 and do one more test for confirmation.  But if it doesn’t create the thumb- you’ll need it 777 (or alter the server settings- which would be beyond my realm of knowledge).

  • #5 / Sep 06, 2007 1:07pm

    Lisa Wess

    20502 posts

    Just as a note, EngineHosting doesn’t require any particular permissions, which is why it works at 775. 

    See Derek’s comment here about 777 permissions for an explanation of why this should not be a problem, and why it works with lower permissions on EngineHosting, too. =)

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases