Custom Date Nav to show specific Blog-Entries
Permalink
Hello!
I'm struggeling to solve this.
I'm having three blogs, every blog has it's own Blog-Entries (articles), and in the sidebar Date Navigation I want to show all the articles from all three blogs. So, this is easily done by choosing Location in Website -> "everything" in the Date Nav edit mode.
But the problem is that I have a multilingual site (3 languages), that means that I have similar articles for every language. And with the option "everything" I see also articles for diferent languages that are just messing up my Date Navigation.
How can I choose insted of everything -> "Everything for this specific language" or "every Blog-entry under this site (children included)" if I choose Location in Website -> "beneath another page"?
Can somebody please give me a helping hand. There needs to be a way to set this up in the DateNav .php files.
I'm struggeling to solve this.
I'm having three blogs, every blog has it's own Blog-Entries (articles), and in the sidebar Date Navigation I want to show all the articles from all three blogs. So, this is easily done by choosing Location in Website -> "everything" in the Date Nav edit mode.
But the problem is that I have a multilingual site (3 languages), that means that I have similar articles for every language. And with the option "everything" I see also articles for diferent languages that are just messing up my Date Navigation.
How can I choose insted of everything -> "Everything for this specific language" or "every Blog-entry under this site (children included)" if I choose Location in Website -> "beneath another page"?
Can somebody please give me a helping hand. There needs to be a way to set this up in the DateNav .php files.
Leinteractive thanks for you answer!
I did had the idea to do it with attributes, but there are couple of reasons I didn't.
First, I don't know yet how to make custom attributes.
Second, the process looks like quite some work
Third, what would happen if I add another language later. Would I then need to reprogram everything for the new language?
And then there is also the client side, who wants to update the blog as simple as possible.
I'm pretty sure there could a nice .php solution.
Man must probably modife the controller.php (line 26) or the form_setup_html.php (line 50) files for the date_nav.
Is there somebody good with .php?
I did had the idea to do it with attributes, but there are couple of reasons I didn't.
First, I don't know yet how to make custom attributes.
Second, the process looks like quite some work
Third, what would happen if I add another language later. Would I then need to reprogram everything for the new language?
And then there is also the client side, who wants to update the blog as simple as possible.
I'm pretty sure there could a nice .php solution.
Man must probably modife the controller.php (line 26) or the form_setup_html.php (line 50) files for the date_nav.
Is there somebody good with .php?
Then you create a custom template for the DateNav that shows All Pages, but only if they have a certain Language attribute checked.