PDA

View Full Version : use of snippets on EE index page


okapi
12th of March 2004 (Fri), 06:31
hi pekka,

your snippets code is a great feature! it is very, very useful for EE customization!
http://photography-on-the.net/ee/beta/RC2/snippets.zip
only problem i have: the snippets work fine outside from EE gallery and inside, even for pagetemplates (photo and list), but unfortunately not for the EE index page.

what could be done to make it work even for the EE index page?

and a second question, maybe referring to this:
in the pagetemplates folder there is a subfolder "index" since version RC 2. what is the file in this folder for? and what is the difference between this file and 1.php in the folder "indexstyles"?

Pekka
12th of March 2004 (Fri), 18:12
hi pekka,

your snippets code is a great feature! it is very, very useful for EE customization!
http://photography-on-the.net/ee/beta/RC2/snippets.zip
only problem i have: the snippets work fine outside from EE gallery and inside, even for pagetemplates (photo and list), but unfortunately not for the EE index page.

what could be done to make it work even for the EE index page?

This can be done, it needs small changes in snippet code.

and a second question, maybe referring to this:
in the pagetemplates folder there is a subfolder "index" since version RC 2. what is the file in this folder for? and what is the difference between this file and 1.php in the folder "indexstyles"?

That is a dummy file leftover. I will later replace indexstyle system with index templates with a snippet system which builds you all required items and you can build any kind of index page you need.

okapi
13th of March 2004 (Sat), 03:37
this will be great, thanks a lot for the reply.

i want to thank you for your great work and for always taking the time to answer all our questions!
i'm looking forward to the snippets system for EE index page!

Ewan
15th of March 2004 (Mon), 14:26
How can snippets be modified to show a random full-sized image (ie the default size used in an exhibition) instead of a thumbnail?

okapi
15th of March 2004 (Mon), 14:55
How can snippets be modified to show a random full-sized image (ie the default size used in an exhibition) instead of a thumbnail?

... or maybe to show the latest photo in full size?

i think pekka is working on this right now...!
from the moment on when i got in touch with this great software, i was dreaming of an advanced snippets system for all EE pages. with a flexibility like this, EE would be absolutely unbeatable in competition with other blog-software like movable type etc.

EE with a wide range of customization options is what i see coming...

Pekka
15th of March 2004 (Mon), 16:08
How can snippets be modified to show a random full-sized image (ie the default size used in an exhibition) instead of a thumbnail?

... or maybe to show the latest photo in full size?

i think pekka is working on this right now...!
from the moment on when i got in touch with this great software, i was dreaming of an advanced snippets system for all EE pages. with a flexibility like this, EE would be absolutely unbeatable in competition with other blog-software like movable type etc.

EE with a wide range of customization options is what i see coming...

Yes this snippet system is quite nice. If you have in mind which are most useful or cool and with which parameters then let me know.

EE 1.5 list and photo pages are already built so that you can pull any item out of them if you just write a specific template for it. See http://photography-on-the.net/forum/showthread.php?t=17826 .
I'll try to make a list of all variables produced by those pages (you can see them in default templates, too). Only difference with this "EE template system" and "EE snippet system" is that list and photo page template retrieval means that they are run 'fully' internally (i.e. whole page is loaded as if it was opened in browser) and you display parts you need -- with real snippet pages only the queries and code needed to build that specific data to be displayed are ran, which saves resources.

okapi
15th of March 2004 (Mon), 17:07
pekka wrote:
...with real snippet pages only the queries and code needed to build that specific data to be displayed are ran, which saves resources.


yes, in my opinion resource saving and flexible solutions are cool!
i think many people want to have their own design and funtionality of their gallery or photolog pages, and have them powered by a powerful, stable and flexible software.

personally i don't think that photo details, camera details and searching options are so important after all. when looking at popular photoblogs we usually find very few information about capturing and camera details: i'm not surprised at this. for me it's the photograph that counts.

and the way we are presenting it says something about us. with this in mind i think the snippets system will provide the greatest freedom in customization.

okapi
16th of March 2004 (Tue), 18:42
hi pekka,

your snippets code is a great feature! it is very, very useful for EE customization!
http://photography-on-the.net/ee/beta/RC2/snippets.zip
only problem i have: the snippets work fine outside from EE gallery and inside, even for pagetemplates (photo and list), but unfortunately not for the EE index page.

what could be done to make it work even for the EE index page?

This can be done, it needs small changes in snippet code.

how can this be done? please tell me, pekka!

okapi
17th of March 2004 (Wed), 05:58
hi pekka,

your snippets code is a great feature! it is very, very useful for EE customization!
http://photography-on-the.net/ee/beta/RC2/snippets.zip
only problem i have: the snippets work fine outside from EE gallery and inside, even for pagetemplates (photo and list), but unfortunately not for the EE index page.

what could be done to make it work even for the EE index page?

This can be done, it needs small changes in snippet code.

how can this be done? please tell me, pekka!


the snippets code you provided works for me on EE index page under following conditions:

it works with absolute paths
it works with EE 1.5 beta 5

it does not work with relative paths (at least i did not get it working)
it does not work outside the gallery root for EE RC 2 (nav_thumbs are no more clickable, prev and next link do not work correctly any more)

so i run now EE 1.5 beta 5 and all works fine.

maybe the problems with EE RC 2 and snippets have something to do with the new short url system in RC 2?