Theme switcher

BTdotorg

Printing News pages and sending News pages  Top

  • Can anyone please show me how to display the Print icon on News pages..... it appears on the Pages pages.
    I am using Web2 theme
    Also is there a way of adding the' send page ' function to News pages
  • Some days ago I've reworked the News templates for the next 2.5 release and the link was added with
    Code
    <!--[$preformat.print]-->
    also, seems that the recommend link is generated with:
    Code
    <!--[recommend modname='News' itemid=$info.sid]-->
    but I'm not sure that it works.

    Anyways, I moved some pieces in News, but it may work by now, the plan with News 2.5 is to rework some redundant data loaded into the templates, like $preformat.maintext when it's almost the same than the data in the $info array.
    You can check the full code here.
  • I tried the new file but it made no difference, but I then realised that the template file didn't change anything and even deleting it the news page resolved perfectly. Please can you tell me what template is controlling my new article page?
  • When changes doesn't apply it can be:
    The templates is not being recompiled: then, activate the force recompilation on the pnRender settings. Or a custom template is in charge, in this case, the order is:
    /config/templates/News/news_user_***.php
    /themes/YourTheme/templates/modules/News/news_user_***.php
    /modules/News/pntemplates/news_user_***.php

    Greetz icon_wink
  • Thanks Mateo I had put the templates in themes/YourTheme/templates/modules/News/ and that was the controlling template. Unfortunately the new coding doesn't appear to work and the page just displays an unknown error and the error code (which is too long to copy here). Anyway I have recovered the print icon which works fine although it would be nice to have a 'send page function'

    Can you tell me why the new news submissions don't appear on the main menu?

    Thanks icon_smile
  • 31 anonymous users

This list is based on the users active over the last 60 minutes.