file dir trouble
Posted: 12 July 2007 08:55 AM   [ Ignore ]  
Lab Assistant
Avatar
RankRank
Total Posts:  224
Joined  04-28-2006

Hi guys,

I’am having some troubles with the filedir tag. When i put the following code in my template

<img src="{filedir_1}OW_-_MECH_-_080.jpg" style="border: 0;" alt="image" width="619" height="464" />


The result in my html source code is exaclty the same. It seems filedir_1 is not being renderd can somebody tell me what i’am missing or doing wrong? First time i had this problem too

Profile
 
 
Posted: 12 July 2007 08:57 AM   [ Ignore ]   [ # 1 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1097
Joined  03-22-2006

that variable, if I remember right, isn’t actually a global variable and it’s parsed out by the typography class of all things. So, on a template this will not work, but in a custom field it will.

 Signature 

(a.k.a the_butcher)

Profile
 
 
Posted: 12 July 2007 09:00 AM   [ Ignore ]   [ # 2 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  224
Joined  04-28-2006

Well the problem is that i manaully get the field by using sql.
Here is my code:

{exp:query sql="select field_id_36 as shopname, field_id_26 as introtext, field_id_37 as image from exp_weblog_data where field_id_29='{city_name}'"}
                                
<h3 class="openbareweg"><a href="{homepage}/cities_belgium/{url_title}">{shopname} // B-{city_postal} // <strong>VINCI public road</strong></a></h3>
                                    
<div class="accordion">
                                    <
p>{image}{filedir_1}
                                        
<span class="articleimage_right"><img src="{special}phpthumb/phpThumb.php?src=/images/uploads/{exp:extract_url_plus show="fullfilename"}{image}{/exp:extract_url_plus}&w=350" alt="nice image" width="150" height="110"/></span>
                                        
{introtext}
                                    
</p>
                                    <
ul>
                                      <
li>openingsuren: Maandag tot vrijdag // 08h15 - 16h00</li>
                                      
<li>locatie: H.Serruyslaan 38</li>
                                      <
li>t: 059/805408 // t: 059/805419</li>
                                      
<li>e: <a href="mailto:info@uwadres.be">parkingsoostende@vincipark.be</a></li>
                                  </
ul>

                                </
div>
                                <
div class="accordionborder"></div>
                            
{/exp:query}

Is there still a way to force the filedir to render?

Grtz,

Profile
 
 
Posted: 12 July 2007 09:32 AM   [ Ignore ]   [ # 3 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1097
Joined  03-22-2006

Yes, you could place the ee_typography plugin around the output, perhaps. You should be able to find this plugin if you search the forums, sorry no direct link!

 Signature 

(a.k.a the_butcher)

Profile
 
 
Posted: 04 August 2007 05:51 PM   [ Ignore ]   [ # 4 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  12416
Joined  04-29-2002

What I do instead is create a global variable for filedir_1 and that way it works in the query module.

 Signature 

Quick Reference - EE Trial Options - EE Wiki - Docs for updating a build

Profile
MSG
 
 
Posted: 04 May 2008 11:06 PM   [ Ignore ]   [ # 5 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  231
Joined  07-09-2006

great Sue, this was the solution for me as well grin

 Signature 

Erwin van Lun
Marketeer on a Mission

Profile
 
 
Posted: 31 August 2008 08:06 PM   [ Ignore ]   [ # 6 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1076
Joined  01-24-2006

Even better… use the exp:ee_typography plugin!

http://expressionengine.com/downloads/details/ee_typography/

 Signature 

VOTE FOR LG Addons in the Mashable Open Web Awards!


Newism - Newcastle Web Design & Development


LG Better Meta now w/ Sitemap Meta & XML Generator | LG Polls | LG .htaccess Generator

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 65027 Total Logged-in Users: 45
Total Topics: 82117 Total Anonymous Users: 18
Total Replies: 441316 Total Guests: 207
Total Posts: 523433    
Members ( View Memberlist )