PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Mon Aug 21, 2017 2:38 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Tue Oct 25, 2016 3:14 am 
Offline
Forum Contributor
User avatar

Joined: Wed May 14, 2014 12:18 pm
Posts: 325
I have the following code in my record twig file.

Syntax: [ Download ] [ Hide ]
<article class="indivisual-article-writeup">   
<h1>{{ record.title }}</h1>
  {# Output all fields, in the order as defined in the contenttype.
      To change the generated html and configure the options, see:
       https://docs.bolt.cm/templating/fields-tag #}
    {{ fields() }}

    {# Uncomment this if you wish to dump the entire record to the client, for debugging purposes.
       {{ dump(record) }}
    #}
</article>


Now one of the elements of {{ fields() }} is an image and so i get a broken link.

Whats the remedy to this ?


Top
 Profile  
 
PostPosted: Wed Nov 02, 2016 11:50 pm 
Offline
Forum Contributor
User avatar

Joined: Wed May 14, 2014 12:18 pm
Posts: 325
I even added an image to the about us block , now when i just wanted to output the feilds of the about-us record so i added the following code to test it:

Syntax: [ Download ] [ Hide ]
 {% setcontent block = "block/about-us" %}
{{ fields(block) }}


Now even here the image feild shows as a broken like , but when i have my CMS uploaded to the server everything seems to work fine. Why is this happening ??


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group