Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Change News Category and Contents Name... help

Asked Modified Viewed 3,140 times
D
Daronna
D
  • Junior Member, joined since
  • Contributed 10 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
asked
Junior Member

Hi, forgive the newbie-ness.

I like everything about the News Category, the way it displays, the functions, the start and end dates, etc.

I would like to have the same set-up as the News Category and its contents, just called something else, perhaps Crafts.

e.g.
news_cats.php, changed to craft-cats.php
news.php changed to crafts.php
news.php?readmore=2 changed to crafts.php?readmore=2

and so on.

Is there a way to do this? If I've missed it in a tutorial, please point me in that direction.

Thanking you in advance
Daronna
Edited by Daronna on 19-05-2013 19:51,
0 replies

8 posts

P
PolarFox
P
  • Veteran Member, joined since
  • Contributed 1,633 posts on the community forums.
  • Started 29 threads in the forums
answered
Veteran Member

Did you tried to change filename? Any problems you have?
0 replies
D
Daronna
D
  • Junior Member, joined since
  • Contributed 10 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
answered
Junior Member

Thank you for your quick answer.
Do you mean just to rename the file in the adminstration folder and in the files folder?
I hadn't thought of that. I am going to try that.

Again, thank you
Daronna
Edited by Daronna on 20-05-2013 12:50,
0 replies
P
PolarFox
P
  • Veteran Member, joined since
  • Contributed 1,633 posts on the community forums.
  • Started 29 threads in the forums
answered
Veteran Member

Not in admin folder, just in the root.
0 replies
D
Daronna
D
  • Junior Member, joined since
  • Contributed 10 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
answered
Junior Member

Hi;
Although I'm pretty sure I understand the concept of this I need a little more help, if in fact I am doing it correctly.
By just renaming news.php and news_cats.php I was receiving broken links.

I then went into the above 2 files and searched and replaced the 'news' part of the anchor tag. For the most part this works as hoped.

What I cannot get to work is the 'readmore' link. It still points to "news.php?readmore=whatever my number is", and of course this is a broken link as I have renamed the news.php and the news_cat.php file.

While looking at the (previously named) news.php file I can see

: FUSION_SELF."?readmore=".$data['news_id'] )."'>";

How would I go about changing this anchor tag to reflect the new name of my file so that my "readmore" and 'comments' links work.

BTW It appears that Rating is pointing to my correct file.

Thanking you in advance
Daronna
0 replies
J
JoiNNN
J
JoiNNN 10
  • Veteran Member, joined since
  • Contributed 850 posts on the community forums.
  • Started 100 threads in the forums
answered
Veteran Member

Quote

What I cannot get to work is the 'readmore' link. It still points to "news.php?readmore=whatever my number is", and of course this is a broken link as I have renamed the news.php and the news_cat.php file.

What theme are you using?
0 replies
D
Daronna
D
  • Junior Member, joined since
  • Contributed 10 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
answered
Junior Member

I have tried it with all 9 themes that came packaged with my download and the same thing happens with each.

Thank you
0 replies
J
JoiNNN
J
JoiNNN 10
  • Veteran Member, joined since
  • Contributed 850 posts on the community forums.
  • Started 100 threads in the forums
answered
Veteran Member

Will use Stylo for this example.
Open theme.php and line #156 search for
[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]echo "<a href='".BASEDIR."news.php?readmore=".$info['news_id']."' class='button'><span class='rightarrow icon'></span>".$locale['global_072']."</a>\n";[/syntaxhighlighter]
and replace with
[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]echo "<a href='".FUSION_SELF."?readmore=".$info['news_id']."' class='button'><span class='rightarrow icon'></span>".$locale['global_072']."</a>\n";[/syntaxhighlighter]

Note that ".BASEDIR."news.php was replaced by ".FUSION_SELF.". You can also do this change in other themes.
0 replies
D
Daronna
D
  • Junior Member, joined since
  • Contributed 10 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
answered
Junior Member

Thank you JoiNNN,
This worked perfect. Although I changed a couple of more links on this same page that were also pointing to news.php, it is working as I had hoped.

Daronna
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 8 posts
  • Votes 0 votes
  • Topic users 3 members

3 participants

P
P
  • Veteran Member, joined since
  • Contributed 1,633 posts on the community forums.
  • Started 29 threads in the forums
J
J
JoiNNN 10
  • Veteran Member, joined since
  • Contributed 850 posts on the community forums.
  • Started 100 threads in the forums
D
D
  • Junior Member, joined since
  • Contributed 10 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet