Member
Member
Bitwalker   27-08-2018, 16:05
#1

Zenpage plugin uses /news as url path for the news items but I'd like it to look like a traditional blog and use /blog in the url instead.
The zenpage code uses the _NEWS_ token variable for the url and mod rewrite. It seems to be defined as option 'zenpageNewsLink', so it seems to be possible to adjust it but in the UI I don't see this option anywhere. How can I change/set this?

Administrator
Administrator
acrylian   27-08-2018, 16:16
#2

You can use the rewriteToken plugin to change that (and some others).

Member
Member
Bitwalker   27-08-2018, 17:13
#3

Thanks. I knew I had seen it somewhere but coudn't find it. Strangely it does not get written to the config file (as the plugin describes), otherwise I would have found it.

$conf['special_pages'] = array(
    'page'=> array('define'=>'_PAGE_', 'rewrite'=>'mypage'),
    'search'=> array('define'=>'_SEARCH_', 'rewrite'=>'_PAGE_/search'),
    'archive'=> array('define'=>'_ARCHIVE_', 'rewrite'=>'_PAGE_/archive'),
    'tags'=> array('define'=>'_TAGS_', 'rewrite'=>'_SEARCH_/tags'),
    'gallery'=> array('define'=>'_GALLERY_INDEX_', 'rewrite'=>'_PAGE_/gallery')
);
Administrator
Administrator
acrylian   27-08-2018, 17:29
#4

Only the core rewirte tokens you listed above are written to the config file. "news" is stored as an option in the database. The plugin text is probably is a bit too general here…

Member
Member
Nordlicht   31-08-2018, 08:00
#5

@ Bitwalker:
It doesn't work "properly".
@ least it didn't with my install.

Even I managed that it says in the FE "Blogs" instead of "news" but "news" still remains in the url.

I'm using the theme Libratus and I can't remember how many files I needed to edit to get the text replaced.

Found this: https://forum.zenphoto.org/discussion/comment/1980207

Administrator
Administrator
acrylian   31-08-2018, 10:45
#6

Regarding the default tokens there is a bug in 1.5 indeed. Try the master (support build becoming 1.5.1 sometime soon) from GitHub where that is fixed already.

However the "news" rewrite token is not related to that. I tried with a plain 1.5 install and it works. The name on the theme itself is hardcoded in several places and must be changed in the theme (which your forum link refers to). The next major release is planned to have options so you can change these "default section names".

Member
Member
Nordlicht   31-08-2018, 10:58
#7

@ acrylian: thanks 4 the update.

Member
Member
sbillard   02-09-2018, 22:28
#8

Unfortunately in zenphoto the word "news" is hard-coded a bunch of places. those have to be changed to get something like https://testalbum-2.sbillard.org/zenphoto/blog as your "news" index page.

Administrator
Administrator
acrylian   03-09-2018, 09:34
#9

As I wrote above…

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.