Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...How to add  hyperlinks to module iconsHow to add hyperlinks to module icons
Previous
 
Next
New Post
3/7/2013 2:53 PM
 
Thank you for your reply. I downloaded "DotNetNuke.Announcements.07.00.00.Install.zip" and tried it out. The image was too close to the text but I was able to modify the CSS in the "Template Configuration". The module allows the specification of a link for the "read more" at the end of the text. But I would like the image to have that same link, which was the original problem with the HTML module and its icon. Any suggestions?
 
New Post
3/8/2013 3:42 AM
 

You can edit the modules template and add a link to the image too.

Unfortunately in DNN 6+ the module help is not visible for this module.

Here it is (copied from DNN 5):

About the Announcements Module

The Announcements Module produces a list of simple text announcements consisting of a title and brief description. Options include a read more link to a file, page or other site. Link click tracking and logging are also available. Announcements are ordered from newest to oldest, unless a view order is specified.

Module Specific Settings

The following module specific settings are available:

  1. History Day(s): this is the number of days to display announcements for. Announcements published longer than the entered number of days ago will not be displayed. Eg. if you enter a value of 4, all announcements older than 4 days will not be displayed. If you leave this field blank, then all announcements will be displayed
  2. Default View: you can select which view is visible for regular users (with no edit rights for this module). Tip: if you put a copy of the same module on a different page, this will allow you so easily make available archived/expired items
  3. Description Length (Search and RSS): with this option you can define how many characters should be used to display a content sample for search and rss.
  4. Editor Height: this allows you to modify the height of the editor in the edit view of the module
  5. Templates: This is the template that is used to display each announcement. In this template you can use tokens to define where specific information of the announcement items should be placed. NOTE: all tokens are case sensitive, and should be capitals only. The following templates are available: Header, Item, Alternate (odd), Separator and Footer

This is the default template:

Header Template <table class="DNN_ANN_DesignTable" cellspacing="0" Summary="Announcements Design Table" border="0" style="border-collapse:collapse;"><tr><td>
Item Template <table><tr><td>[IMAGESOURCE]</td><td valign="top"><span class="SubHead">[EDIT][TITLE] - [PUBLISHDATE]</span><div class="Normal DNN_ANN_Description">[DESCRIPTION]&nbsp;[READMORE]</div></td></tr></table>
Alternate Item Template  
Separator Template  
Footer Template </td></tr></table>

 

the following tokens can be used in templates:

[EDIT] This will render an edit pencil, if, and only if, the logged on user had edit rights for the module. You MUST add this token to the Item Template (and alternate item template if you are using that), in order to be able to edit items
[ITEMID] This will render the item id of the announcement
[MODULEID] This will render the module id of the module the announcement belongs to
[CREATEDBYUSER] This will display the display name of the user that created the Announcement. NOTE: on sites with many users adding this token to a template will cause a performance hit, as for every Announcement a user record has to be found and displayed. Many announcements and many users will cause a large amount of extra database hits.
[CREATEDDATE] This will show the item creation date, in localized long date forum
[DESCRIPTION] This will display the announcement discription
[EXPIREDATE] This will display the announcements expire date
[RAWIMAGE] Thsi will display the raw image url
[IMAGESOURCE] This will display the announcement image as defined in the announcement. A complete image tag will be rendered
[MODULEID] This will display the moduleid of the module.
TIP: You could use this value to use a module specific css classname, for instance like this:
<span class="SubHead_[MODULEID]">[TITLE]</span>
[MORE] This will display the "read more..." text, without hyperlink. A full read more hyperlink would look like this:
<a href="[URL]" target="[NEWWINDOW]">[MORE]</a>
[READMORE] This will display a complete "read more..." link. If no url is defined in the announcement, no link will be rendered
[NEWWINDOW] This token can be used to open the link in a new window, based on the selection made in the announcement, for example: br> <a href="[URL]" target="[NEWWINDOW]">[MORE]</a>
[PUBLISHDATE] This will show the item publish date, in localized long date forum
[TITLE] This will display the announcement title
[TRACKCLICKS] This will render "Yes" or "No", depending on whether to track clicks or not
[URL] This will display the url the announcement should point to. In order to use this url as a clickable hyperlink, use something like this:< /br> <a href="[URL]">[MORE]</a>
[VIEWORDER] This will show the view order of the item



 
New Post
3/8/2013 5:24 AM
 
This module is a better option.
For your problem.

Cheers..!!!

Amit Mohanty
Mindfire Solutions
 
New Post
3/8/2013 1:51 PM
 
Thank you. Version 7.0 has the Template Help, if you scroll down on the Template Configuration dialog. But I would like the end solution to not require entering the same hyperlink twice. I haven't built a module yet, but will look into making modified version of the Announcements module that will hyperlink the image by default.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...How to add  hyperlinks to module iconsHow to add hyperlinks to module icons


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out