missing "view"

Found a bug? Tell us!!
Post Reply
stm999999999
Regular
Posts: 1531
Joined: Tue Mar 07, 2006 11:25 pm
Location: Berlin, Germany
Contact:

missing "view"

Post 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.
Ciao, Stephan
carl_galloway
Regular
Posts: 1331
Joined: Sun Dec 04, 2005 5:43 pm
Location: Andalucia, Spain
Contact:

Post 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.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: missing "view"

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
stm999999999
Regular
Posts: 1531
Joined: Tue Mar 07, 2006 11:25 pm
Location: Berlin, Germany
Contact:

Re: missing "view"

Post 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.
Ciao, Stephan
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: missing "view"

Post by garvinhicking »

What is $view then set to, in the ?blabla case? Empty string, or what?
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
stm999999999
Regular
Posts: 1531
Joined: Tue Mar 07, 2006 11:25 pm
Location: Berlin, Germany
Contact:

Post 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!
Ciao, Stephan
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post 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?
Judebert
---
Website | Wishlist | PayPal
stm999999999
Regular
Posts: 1531
Joined: Tue Mar 07, 2006 11:25 pm
Location: Berlin, Germany
Contact:

Post by stm999999999 »

yes to all, I think.

only one problem: backwards compatibility!


Is it possible to give out more than one view values?
Ciao, Stephan
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post 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.
Judebert
---
Website | Wishlist | PayPal
Post Reply