• Resolved danieldukes

    (@danieldukes)


    I have a template that’s currently in use (below). The bottom field (logo_description) needs to be truncated to 40 characters and have a read more tag that links to the post. I cannot for the life of me figure out how to do this. Any help is appreciated! Thanks!

    <html>
    <body>
      <div style="width:100%;">
    	  <center><img src="{@logo._src}" alt="{@post_name}" ></center>
      </div>
    	<div class=x-text; style="padding:1em;">
    		<h4 style="text-align:left; margin:0;">{@team_name}</h4>
    		<p style="text-align: left;">{@logo_description}</p>	
    	</div>
    </body>
    
    </html>
Viewing 1 replies (of 1 total)
  • Plugin Author Jory Hogeveen

    (@keraweb)

    Hello @danieldukes

    You could create your own function to do this and pass the field to that function like this: {@logo_description,YOUR_FUNCTION_NAME}. Notice the comma that separated the field name from the function name.

    Cheers, Jory

Viewing 1 replies (of 1 total)
  • The topic ‘Having a field in a template limit characters and say: Read More’ is closed to new replies.