1
caek9
In the default news module, how do I remove the catagory name from the title?
  • 2009/1/24 4:03

  • caek9

  • Friend of XOOPS

  • Posts: 35

  • Since: 2008/7/9 2


The default news module displays news like "category : Article title"

How do I change it to just displays the article title?

2
deka87
Re: In the default news module, how do I remove the catagory name from the title?
  • 2009/1/24 6:31

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


In the article.php find a line that starts with
$xoopsTpl->assign('xoops_pagetitle'
. The rest of the line should contain variables for your category and article title. Just remove those your don't need.
Mind anchors

3
ghia
Re: In the default news module, how do I remove the catagory name from the title?
  • 2009/1/24 8:19

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


No, you should not remove things in, or alter, PHP code for changing the view of your site!
The templates are made for that!

So ,alter /modules/news/templates/news_topics_directory.html(?) for removing the title.
If it is enclosed in eg. a div or span tag with some name or id, then you can also use CSS with a display:none or visibility:hidden for removing it from display.

4
caek9
Re: In the default news module, how do I remove the catagory name from the title?
  • 2009/1/26 2:39

  • caek9

  • Friend of XOOPS

  • Posts: 35

  • Since: 2008/7/9 2


I tried looking for it, and I thought I removed it, but keeps displaying the topic title in the titlebar. The code for this I thought was in templates/news_item.html in the header section,
<td class="itemHead">&nbsp;&nbsp;<span class="itemTitle"><{$story.news_title}>span><a href="<{$xoops_url}>/modules/news/index.php?storytopic=<{$story.topicid}>">            a>td>tr>


Thats the line I thought was responsible, and I removed references to topic, but it isn't going away. Any one know where else I might check?

5
ghia
Re: In the default news module, how do I remove the catagory name from the title?
  • 2009/1/26 8:44

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Did you do update for the News module in admin - module admin or set temporary the update template preference setting in admin - preferences - system -general to yes??

6
deka87
Re: In the default news module, how do I remove the catagory name from the title?
  • 2009/1/26 12:29

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


still editing article.php would be much easier...
Mind anchors

7
trabis
Re: In the default news module, how do I remove the catagory name from the title?
  • 2009/1/26 13:27

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


What title do you mean? Title of the page as you see in your browser or title close to your article?

8
caek9
Re: In the default news module, how do I remove the catagory name from the title?
  • 2009/1/27 5:48

  • caek9

  • Friend of XOOPS

  • Posts: 35

  • Since: 2008/7/9 2


I am talking about the title of each individual article, not the title bar of the browser, I'd also like to remove title of the most recent news article from displaying as well.

Basicaly, if I have a topic named "Topic" and an article under that topic named "Article" it displays it as "topic article"

I'd like just to display the article title.


Ghia- I tried both of your suggestions, but it still hasn't changed.

And I'm still unsure about editing the actual PHP of my site, in case it breaks other things.

9
deka87
Re: In the default news module, how do I remove the catagory name from the title?
  • 2009/1/27 6:26

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


caek9, forget about editing php my comments were regarding changing the page . <br><br> </div> <div style="position: relative; margin-top: 5px; bottom:0px; right: 15px; text-align: right; font-style: italic; clear: both; border-top:1px solid #eeeeee; padding: 10px 0 0 0;"> Mind anchors </div> <div style="position: relative; bottom:0px; right: 15px; padding-top: 15px; text-align: right; clear: both"> <a class="btn btn-success btn-xs" href="#top" title="Top"><i class="far fa-arrow-alt-circle-up"></i></a> </div> </div> <hr> </div> </div> <style> .kapla { background: #f6f7fb; padding: 10px; border-radius: 3px; border: 1px solid #e3ebf6; } </style> <div class="newbb-viewtopic-footer"> <div class="row mb10"> <div class="col-sm-6 col-md-6 hidden-xs"> <a href="https://xoops.org/modules/newbb/reply.php?topic_id=67436" title="Reply" class="btn btn-sm btn-primary">Reply</a> <a href="https://xoops.org/user.php" title="Register" class="btn btn-sm btn-success">Register</a> <a href="https://xoops.org/modules/newbb/polls.php?op=add&topic_id=67436" title="Add Poll" class="btn btn-sm btn-info">Add Poll</a> </div> </div> <div class="text-right generic-pagination"> </div> </div> <!-- .newbb-viewtopic-footer --> </div> <!-- .newbb-viewforum --> <!-- End content module --> </div> </div> <div class="col-xl-3 col-lg-12 col-md-12"> <!-- Start right blocks loop --> <div class="card"> <div class="card-header"> <h3 class="card-title">Login</h3> </div> <div class="card-body p-0"> <div class="card-body pt-3 pb-3"> <div class="panel panel-default"> <form action="https://xoops.org/user.php" method="post" role="form"> <div class="panel-body"> <form class="form-horizontal" role="form"> <div class="form-group"> <label for="inputEmail3" class="col-sm-12 control-label"> Username</label> <div class="col-sm-9"> <input class="form-control login-block-form" style="margin-bottom: 5px;" type="text" name="uname" placeholder="Your Username"> </div> </div> <div class="form-group"> <label for="inputPassword3" class="col-sm-12 control-label"> Password</label> <div class="col-sm-9"> <input class="form-control login-block-form" type="password" name="pass" placeholder="Your Password"> </div> </div> <div class="form-group"> <div class="col-sm-offset-3 col-sm-9"> <div class="checkbox"> <label> <input type="checkbox" name="rememberme" value="On" class="formButton"> Remember me </label> </div> </div> </div> <input type="hidden" name="xoops_redirect" value="/modules/newbb/viewtopic.php?topic_id=67436"> <input type="hidden" name="op" value="login"> <div class="form-group last"> <div class="col-sm-offset-3 col-sm-9"> <input type="submit" class="btn btn-success btn-sm" value="User Login"> <button type="reset" class="btn btn-default btn-sm"> Reset </button> </div> </div> </form> </div> </form> <div class="panel-footer" style="text-align: center"> <a href="https://xoops.org/register.php" title="Register now!">Register now!</a>  |  <a href="https://xoops.org/user.php#lost" title="Lost Password?">Lost Password?</a> </div> </div> </div> </div> </div> <div class="card"> <div class="card-header"> <h3 class="card-title">Search</h3> </div> <div class="card-body p-0"> <div class="card-body pt-3 pb-3"> <form role="search" action="https://xoops.org/search.php" method="get"> <div class="input-group"> <input class="form-control" type="text" name="query" placeholder="Search here..."> <input type="hidden" name="action" value="results"> <span class="input-group-btn"> <button class="btn btn-primary" type="submit"> <span class="fas fa-search"></span> </button> </span> </div> </form> <p class="text-right"> <a href="https://xoops.org/search.php" title="Advanced Search"> Advanced Search </a> </p> </div> </div> </div> <div class="card"> <div class="card-header"> <h3 class="card-title">Recent Posts</h3> </div> <div class="card-body p-0"> <div class="job-box"> <div class="inbox-message"> <ul> <li> <div class="message-body1"> <div class="message-body-heading1"> <h5><a href="https://xoops.org/modules/newbb/viewtopic.php?post_id=367333#forumpost367333"><i class="fas fa-angle-right"></i> XOOPS MyMenus 1.54.0 Beta 10</a></h5> </div> <div class="olc"><i class="far fa-calendar-alt"></i> 11/18 11:08 <i class="fas fa-user"></i> <a href="https://xoops.org/userinfo.php?uid=19563" title="Mamba">Mamba</a> </div> </div> </li> <li> <div class="message-body1"> <div class="message-body-heading1"> <h5><a href="https://xoops.org/modules/newbb/viewtopic.php?post_id=367332#forumpost367332"><i class="fas fa-angle-right"></i> Re: XOOPS MyMenus 1.54.0 Beta 7</a></h5> </div> <div class="olc"><i class="far fa-calendar-alt"></i> 11/18 11:06 <i class="fas fa-user"></i> <a href="https://xoops.org/userinfo.php?uid=19563" title="Mamba">Mamba</a> </div> </div> </li> <li> <div class="message-body1"> <div class="message-body-heading1"> <h5><a href="https://xoops.org/modules/newbb/viewtopic.php?post_id=367330#forumpost367330"><i class="fas fa-angle-right"></i> Re: XOOPS MyMenus 1.54.0 Beta 7</a></h5> </div> <div class="olc"><i class="far fa-calendar-alt"></i> 11/16 12:32 <i class="fas fa-user"></i> <a href="https://xoops.org/userinfo.php?uid=133616" title="liomj">liomj</a> </div> </div> </li> <li> <div class="message-body1"> <div class="message-body-heading1"> <h5><a href="https://xoops.org/modules/newbb/viewtopic.php?post_id=367329#forumpost367329"><i class="fas fa-angle-right"></i> Re: XOOPS MyMenus 1.54.0 Beta 7</a></h5> </div> <div class="olc"><i class="far fa-calendar-alt"></i> 11/15 18:06 <i class="fas fa-user"></i> <a href="https://xoops.org/userinfo.php?uid=19563" title="Mamba">Mamba</a> </div> </div> </li> <li> <div class="message-body1"> <div class="message-body-heading1"> <h5><a href="https://xoops.org/modules/newbb/viewtopic.php?post_id=367328#forumpost367328"><i class="fas fa-angle-right"></i> Re: XOOPS MyMenus 1.54.0 Beta 7</a></h5> </div> <div class="olc"><i class="far fa-calendar-alt"></i> 11/15 5:33 <i class="fas fa-user"></i> <a href="https://xoops.org/userinfo.php?uid=133616" title="liomj">liomj</a> </div> </div> </li> <li> <div class="message-body1"> <div class="message-body-heading1"> <h5><a href="https://xoops.org/modules/newbb/viewtopic.php?post_id=367327#forumpost367327"><i class="fas fa-angle-right"></i> Re: XOOPS MyMenus 1.54.0 Beta 7</a></h5> </div> <div class="olc"><i class="far fa-calendar-alt"></i> 11/15 5:29 <i class="fas fa-user"></i> <a href="https://xoops.org/userinfo.php?uid=133616" title="liomj">liomj</a> </div> </div> </li> <li> <div class="message-body1"> <div class="message-body-heading1"> <h5><a href="https://xoops.org/modules/newbb/viewtopic.php?post_id=367326#forumpost367326"><i class="fas fa-angle-right"></i> Re: XOOPS MyMenus 1.54.0 Beta 7</a></h5> </div> <div class="olc"><i class="far fa-calendar-alt"></i> 11/15 4:39 <i class="fas fa-user"></i> <a href="https://xoops.org/userinfo.php?uid=19563" title="Mamba">Mamba</a> </div> </div> </li> <li> <div class="message-body1"> <div class="message-body-heading1"> <h5><a href="https://xoops.org/modules/newbb/viewtopic.php?post_id=367325#forumpost367325"><i class="fas fa-angle-right"></i> Re: XOOPS MyMenus 1.54.0 Beta 7</a></h5> </div> <div class="olc"><i class="far fa-calendar-alt"></i> 11/15 3:50 <i class="fas fa-user"></i> <a href="https://xoops.org/userinfo.php?uid=133616" title="liomj">liomj</a> </div> </div> </li> <li> <div class="message-body1"> <div class="message-body-heading1"> <h5><a href="https://xoops.org/modules/newbb/viewtopic.php?post_id=367324#forumpost367324"><i class="fas fa-angle-right"></i> Re: XOOPS MyMenus 1.54.0 Beta 7</a></h5> </div> <div class="olc"><i class="far fa-calendar-alt"></i> 11/15 3:31 <i class="fas fa-user"></i> <a href="https://xoops.org/userinfo.php?uid=19563" title="Mamba">Mamba</a> </div> </div> </li> <li> <div class="message-body1"> <div class="message-body-heading1"> <h5><a href="https://xoops.org/modules/newbb/viewtopic.php?post_id=367323#forumpost367323"><i class="fas fa-angle-right"></i> Re: XOOPS MyMenus 1.54.0 Beta 7</a></h5> </div> <div class="olc"><i class="far fa-calendar-alt"></i> 11/15 1:48 <i class="fas fa-user"></i> <a href="https://xoops.org/userinfo.php?uid=19563" title="Mamba">Mamba</a> </div> </div> </li> </ul> </div> </div> </div> </div> <div class="card"> <div class="card-header"> <h3 class="card-title">Who's Online</h3> </div> <div class="card-body p-0"> <div class="card-body pt-3 pb-3"> <p><strong>319</strong> user(s) are online (<strong>239</strong> user(s) are browsing <strong>Support Forums</strong>)</p> <hr> <p><i class="fas fa-user-plus"></i> Members: 0</p> <hr> <p><i class="fas fa-street-view"></i> Guests: 319</p> <hr> <p><i class="fas fa-users"></i> </p> <a class="btn btn-sm btn-info" href="javascript:openWithSelfMain('https://xoops.org/misc.php?action=showpopups&type=online','Online',420,350);" title="more...">more...</a> </div> </div> </div> <div class="card"> <div class="card-header"> <h3 class="card-title">Donat-O-Meter</h3> </div> <div class="card-body p-0"> <table class="table table-bordered"> <tr> <td style="width: 100%; font-weight: bold; text-decoration: underline;" colspan="2">Stats</td> </tr> <tr> <td>Goal:</td> <td>$100.00</td> </tr> <tr> <td>Due Date:</td> <td>Nov 30</td> </tr> <tr> <td>Gross Amount:</td> <td>$0.00</td> </tr> <tr> <td>Net Balance:</td> <td>$0.00</td> </tr> <tr> <td style="font-weight: bold;">Left to go:</td> <td style="font-weight: bold;"><span style="color: #CC0000;">$100.00</span></td> </tr> <tr> <td style="width: 100%; text-align: center;" colspan="2"><a href="https://xoops.org/modules/xdonations/index.php"> <img src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" style="border-width; 0px;" alt="Make donations with PayPal!" width=110 height=23 /> </a></td> </tr> </table> </div> </div> <div class="card"> <div class="card-header"> <h3 class="card-title">Latest GitHub Commits</h3> </div> <div class="card-body p-0"> <div id="demo"> <div class="job-box"> <div class="inbox-message"> <ul> <li v-for="record in commits"> <div class="message-body1"> <div class="message-body-heading1"> <h5><a><i class="fas fa-angle-right"></i></a> <a :href="record.html_url" target="_blank" class="commit">{{ record.sha.slice(0, 7) }} - <span class="message">{{ record.commit.message | truncate }}</span></a></h5> </div> <div class="olc"><i class="fas fa-user"></i> <a :href="record.author.html_url" target="_blank">{{ record.commit.author.name }}</a> <i class="fas fa-folder-open"></i> {{ record.commit.author.date | formatDate }}</div> </div> </li> </ul> </div> </div> </div> <script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.2.4/vue.min.js"></script> <script> var apiURL = 'https://api.github.com/repos/XOOPS/XoopsCore25/commits?per_page=3&sha=' /** * Actual demo */ var demo = new Vue({ el: '#demo', data: { branches: ['master'], currentBranch: 'master', commits: null }, created: function () { this.fetchData() }, watch: { currentBranch: 'fetchData' }, filters: { truncate: function (v) { var newline = v.indexOf('n') return newline > 0 ? v.slice(0, newline) : v }, formatDate: function (v) { return v.replace(/T|Z/g, ' ') } }, methods: { fetchData: function () { var xhr = new XMLHttpRequest() var self = this xhr.open('GET', apiURL + self.currentBranch) xhr.onload = function () { self.commits = JSON.parse(xhr.responseText) console.log(self.commits[0].html_url) } xhr.send() } } }) </script> </div> </div> <!-- End right blocks loop --> </div> </div> </div> </section> <!--Section--> <!--Footer Section--> <footer class="footer"> <div class="container bottom_border"> <div class="row"> <div class=" col-sm-4 col-md col-6 col"> <h5 class="headin5_amrc col_white_amrc pt2">About us</h5> <!--headin5_amrc--> <ul class="footer_ul_amrc"> <li><a href="https://xoops.org/modules/wfchannel/">About Xoops</a></li> <li><a href="https://xoops.org/modules/wfchannel/index.php?cid=24">Why XOOPS?</a></li> <li><a href="https://xoops.org/modules/wfchannel/index.php?cid=21">Board of Advisors</a></li> <li><a href="https://xoops.org/modules/wgtimelines/index.php?op=list&tl_id=1">Xoops Innovators</a></li> <li><a href="https://xoops.org/modules/wgtimelines/index.php?op=list&tl_id=2">XOOPSers</a></li> <li><a href="https://xoops.org/modules/wfchannel/index.php?cid=6">XOOPS Etiquette</a></li> </ul> <!--footer_ul_amrc ends here--> </div> <div class=" col-sm-4 col-md col-6 col"> <h5 class="headin5_amrc col_white_amrc pt2">Learn</h5> <!--headin5_amrc--> <ul class="footer_ul_amrc"> <li><a href="https://xoops.org/modules/news/article.php?storyid=4534">Books</a></li> <li><a href="https://xoops.org/modules/smartfaq/">FAQ</a></li> <li><a href="https://www.gitbook.com/@xoops/">Core Guides</a></li> <li><a href="https://www.gitbook.com/@xoops/">Module Guides</a></li> </ul> <!--footer_ul_amrc ends here--> </div> <div class=" col-sm-4 col-md col-6 col"> <h5 class="headin5_amrc col_white_amrc pt2">Use</h5> <!--headin5_amrc--> <ul class="footer_ul_amrc"> <li><a href="https://github.com/XOOPS/XoopsCore25/releases">Download Xoops</a></li> <li><a href="https://github.com/XoopsModules25x">Module @ GitHub</a></li> <li><a href="https://github.com/Xoopsthemes">Themes@ GitHub</a></li> <li><a href="https://github.com/XoopsLanguages">Languages @ GitHub</a></li> <li><a href="https://xoops.org/modules/newbb/">Support Forums</a></li> <li><a href="https://xoops.org/modules/xoopspartners/">International Support</a></li> </ul> <!--footer_ul_amrc ends here--> </div> <div class=" col-sm-4 col-md col-6 col"> <h5 class="headin5_amrc col_white_amrc pt2">Develop GitHub</h5> <!--headin5_amrc--> <ul class="footer_ul_amrc"> <li><a href="https://github.com/XOOPS">Core @ GitHub</a></li> <li><a href="https://github.com/XoopsModules25x">Module @ GitHub</a></li> <li><a href="https://github.com/Xoopsthemes">Themes@ GitHub</a></li> <li><a href="https://github.com/XoopsLanguages">Languages @ GitHub</a></li> <li><a href="https://sourceforge.net/projects/xoops/">Legacy XOOPS @ SourceForge </a></li> <li><a href="https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md">Coding Standards PSR-2</a></li> </ul> <!--footer_ul_amrc ends here--> </div> <div class=" col-sm-4 col-md col-6 col"> <h5 class="headin5_amrc col_white_amrc pt2">Contribute</h5> <!--headin5_amrc--> <ul class="footer_ul_amrc"> <li><a href="https://xoops.org/modules/xdonations/">$$$ Donations</a></li> <li><a href="https://github.com/orgs/XOOPS/people">Join Team</a></li> <li><a href="https://github.com/XOOPS">Core @ GitHub</a></li> <li><a href="https://github.com/XoopsModules25x">Module @ GitHub</a></li> <li><a href="https://github.com/Xoopsthemes">Themes@ GitHub</a></li> <li><a href="https://github.com/XoopsLanguages">Languages @ GitHub</a></li> <li><a href="https://github.com/XOOPS/XoopsCore25/issues">Report Core Bug</a></li> </ul> <!--footer_ul_amrc ends here--> </div> <div class=" col-sm-4 col-md col-6 col"> <h5 class="headin5_amrc col_white_amrc pt2">Connect</h5> <!--headin5_amrc--> <ul class="footer_ul_amrc"> <li><a href="https://www.facebook.com/groups/xoops/">Facebook</a></li> <li><a href="http://www.linkedin.com/groups?gid=43552">LinkedIn</a></li> <li><a href="http://www.flickr.com/photos/tags/xoops/">Flickr</a></li> <li><a href="https://www.youtube.com/results?search_query=xoops">YouTube</a></li> <li><a href="https://www.openhub.net/p/xoops">Ohloh</a></li> <li><a href="https://twitter.com/xoopsgithub">Twitter</a></li> </ul> <!--footer_ul_amrc ends here--> </div> </div> </div> <div class="container"> <!--foote_bottom_ul_amrc ends here--> <br> <p class="text-center"><a rel="nofollow" href="https://xoops.org/modules/wfchannel/index.php?pagenum=3">Terms of Use</a> | <a rel="nofollow" href="https://xoops.org/modules/wfchannel/index.php?pagenum=4">Privacy Policy</a> | Hosted by <a rel="nofollow" href="http://www.arvixe.com/xoops_hosting?utm_campaign=xoops&utm_medium=banner&utm_source=xoops.org" title="Hosted by Arvixe">Arvixe Hosting</a> | <a rel="nofollow" href="https://xoops.org/backend.php" title="RSS2 Feed"><img src="https://xoops.org/uploads/rss.gif" alt="RSS 2.0 Button" /></a> <script type="module"> jQuery(document).ready(function () { jQuery("ul.sf-menu").superfish(); pathClass: "current" }); </script></p> </div> <center><a href="https://erenyumak.com/" target="_blank">Design: B.Heyula</a></center> </footer> <a href="#top" id="back-to-top" style="display: inline;"><i class="fa fa-long-arrow-up"></i></a> <!--Footer Section--> <!-- JS --> <script src="https://xoops.org/themes/xoops2020/js/jquery-3.5.1.min.js"></script> <script src="https://xoops.org/themes/xoops2020/js/bootstrap.min.js"></script> <script src="https://xoops.org/themes/xoops2020/js/bootstrap.bundle.min.js"></script> <script src="https://xoops.org/themes/xoops2020/js/newapplication.js" defer></script> <!-- JS --> </body> </html>