Community > Answers
82 views

LiveBlog - Edit / Custom Tokens

Hello, 

First time using this DNN module. I was wonder how can i change/ edit existing Tokens for the live blog. 

for example: 
I see in the Template/Tokens/Photos folder this is a file called items with the default HTML "<div><img src="[Post:ImageUrl]"  alt="[Post:Alt]" /></div>"

but i would like all images to use background images like  "<div class="blog-post-photo" style="background-image: url([Post:ImageUrl])"></div>".

How can i make these changes? ( I edited that file, reset the server, cleared DNN  and browser cache and no dice.)

Also every title and such has Anchor tags wrapping each element, which is a feature i would not like too.  yet i cant seem to find out where to make these changes. 


Cheers!
happy 2020. 

Jason Sutter

jason sutter jason sutter
asked 01/03/2020 17:26
Add Comment
Ashish Pachori
replied 01/06/2020 13:35

Please provide us with the URL of the page in question so we may take a look. 

jason sutter
replied 01/06/2020 17:20

Hey Ashish, 
 Here is the URL of the current project. 
https://digistreamfrontenddnn.azurewebsites.net/#storiesCard-section 

My Goals:

  • Wrap the image in an anchor tag,
  • have no other links in the categories 
  • not use an img tag but rather use css and set the background-image with the image source.  ( so i can control sizing better )



Thank you so much for your time and your attention

Ashish Pachori
replied 01/07/2020 13:13

Please update the following template and use [Post:photo_src] instead of [Post:photo] token:

\DesktopModules\LiveBlog\Themes\venusliveblog\Template\Widgets\RecentPosts\Item.htm

Last Activity 01/07/2020 13:13

No answers found

Add an Answer