Page 1 of 1
missing "view"
Posted: Fri Oct 06, 2006 1:05 am
by stm999999999
hello,
there are several view-status'
Code: Select all
$view [string - available for 1.0-beta3 and above]
Indicates the current "view" on the frontend. One of: "archives, entry, feed, admin, archives, plugin, categories, authors, search, css, start, 404"
but one is missing:
if you use a staticpage as startpage, you will reach the "normal" frontpage with "index.php?frontpage"
But this page did not have the view "start" and not the view "archives" (as the next pages by navigation archives/P2.html ...)
There should be a view like "frontpage" for this, I think.
Posted: Fri Oct 06, 2006 6:49 am
by carl_galloway
Its been mentioned in another
thread, and now that Garvin is back from his vacation we should probably remind him to look into it. Not sure where falk is at with updating the static pages plugin but he has been busy on it. I would also like to see some other changes to the static pages plugin, specifically more integration with the multilingual plugin and the static pages sidebar plugin. Perhaps its time to really sort out what we want from the static pages plugin and design forward rather than constantly reacting to user requests.
To begin with, I would like the startpage bug fixed, secondly, I would like to see the sidebar plugin give users the option of displaying pages by language (user locale), perhaps with an option for the user to expand the list to all pages, or selected pages based on language.
Re: missing "view"
Posted: Fri Oct 06, 2006 11:47 am
by garvinhicking
Hi!
ACtually, it doesn't matter what URL you use. "index.php?gimmethefuckingstartpage" would also return you the frontpage.
When that is set, it actually must contain 'archives'?!
Regards,Garvin
Re: missing "view"
Posted: Fri Oct 06, 2006 2:19 pm
by stm999999999
garvinhicking wrote:
When that is set, it actually must contain 'archives'?!
aeh, what do you mean? Sorry, ich mach das jetzt mal auf Deutsch, sonst haut das nicht hin:
Ich habe mir jetzt erstmal eine smarty-Funktion gebastelt, die mir den eingestellten Archive-Pfad ausgibt und ich verlinke auf meiner static-frontpage nun nach {archive-pfad}P1.html. Dann klappt das mit dem view "archives". Bei der Variante index.php?blablub reagiert ist $views=="archives" false.
Re: missing "view"
Posted: Fri Oct 06, 2006 2:34 pm
by garvinhicking
What is $view then set to, in the ?blabla case? Empty string, or what?
Posted: Sat Oct 07, 2006 3:08 am
by stm999999999
I don't know why, but in my new test it has the view "start". But this is a problem, too - I think:
s9y can not distinct between the staticpage-frontpage and the ?blabla-Frontpage:
If I make a if-clause for something I want to show before the article list
Code: Select all
{if (view =="start")||(view =="archives")||(view =="categories")}
bla bla navigation
{/if}
this will be shown in the bottom of the static-frontpage, too!
Posted: Wed Oct 11, 2006 10:43 pm
by judebert
So are we saying we need to be able to distinguish between the frontpage view which is dynamically created and the frontpage view which is a static page? Would we also want to do the same thing for a frontpage view which is a category?
Posted: Fri Oct 20, 2006 9:16 pm
by stm999999999
yes to all, I think.
only one problem: backwards compatibility!
Is it possible to give out more than one view values?
Posted: Tue Oct 24, 2006 10:02 pm
by judebert
If it is, I don't know how. Well, OK, yes, I do know how; but it would certainly break backwards compatibility.
The only way I can imagine working it out is with a second variable, like "subview", so you could get view == "start" && subview == "category" or something.