Jump to content


etomite code / placeholders


  • You cannot reply to this topic
30 replies to this topic

#21 Ralph

    Loves Etomite Forums!

  • Admin
  • 6,524 posts
  • Gender:Male

Posted 17 August 2004 - 09:57 PM

Quote

Where do I e.g. find something like this: [[NewsListing?newsid=8]]
in the wiki manual? I was expecting to find those tags in the advanced templating section. But that section somehow is linked to the snippets?

What you have there is a snippet call which is passing variable assignments... This works just like sending data in a URL... This feature is new in Etomite 0.6... When the snippet NewsListing opens it has the snippet variable $newsid assigned the value 8... You can send as many variables as you like to snippets... I even have snippets send variables to other snippets and chunks that send variables to snippets... You cannot send variables to chunks, however...

Here is a very simple example of variable passing in action...

Snippet Call Example



[[DoSomeThings?a=5&b=10&c=Example]]

# DoSomeThings Snippet

#

$sum = $a + $b;

$output = $c . ": " . $a . " + " . $b . " = " . $sum;

return $output;

Which will generate: Example: 5 + 10 = 15

This was just a very simple example of what can be done by passing variables to snippets... I hope this helps... If you have any other questions feel free to ask...

#22 JuggoPop

    Likes Etomite Forums!

  • Member
  • PipPip
  • 158 posts

Posted 17 August 2004 - 10:38 PM

read the other thread you started about printer friendly versions...
http://www.etomite.com/viewtopic.php?p=4101#4101

I give a very eazy way to do it and Alex mentions he will look into pdf

#23 mmjaeger

    Likes Etomite Forums!

  • Member
  • PipPip
  • 343 posts

Posted 18 August 2004 - 09:06 AM

Quote

Quote

I really think etomite and phpwcms should join forces - they would have an unbeatable CMS.

Noooo. That would be like parking a bicycle next to a Ferrari. You just don't do it! :D

Those are the things I kind of miss in etomite:


[BACK]text or image[/BACK] Creates back function based on "java script:history.back();" Tag can be used with text or grafic
example text
[BACK]back[/BACK]
example image
[BACK]{IMAGE:imagename}[/BACK]

[BOOKMARK]text or image[/BOOKMARK] Creates an Bookmark link.Only works under IE Tag can be used with text or grafic

example text [BOOKMARK]Bookmark Page [/BOOKMARK]
example image [BOOKMARK]{IMAGE:imagename}[/BOOKMARK]

[EXT url]string[/EXT] Creates an link to URL (opens in a new browser window) around the string. Example
[EXT goto]http://www.apple.com]goto Apple[/EXT] > goto Apple

[ID integer]string[/ID] This creates a HTML link to an article with ID (integer). String represents the text that is linked. Example: [>ID 4]read this[/ID]
[ID string]string[/ID] This creates a HTML link to a structure level with ALIAS (string). Second string represents the text that is linked. Example: [>ID news]read news[/ID]
[INT url]string[/INT] Creates an link to URL (opens in same browser window) around the string. Sample: [>INT visit]http://www.microsoft.com]visit MS[/INT] > visit MS
[MAIL to@mail.com]text[/MAIL]
[MAILSUB to@mail.com contact]text[/MAILSUB]
PHP
my_php_code;more_php_code

[PRINT]text or image[/PRINT] Creates print view Tag can be used with text or grafic esample text example text [PRINT]Print[/PRINT] example image [PRINT]{IMAGE:imagename}[/PRINT]

[RSS all]some text[/RSS]
[TOP]text oder bild[/TOP] Creates Anchor to the top of the page Tag can be used with text or grafic esample text example text [TOP]go to top[/TOP] example image [TOP]{IMAGE:imagename}[/TOP]

{AUTHOR} Returns author of article
{BREADCRUMB} shows visitior on which page he currently is starting from home. Path generated by this tag can also be used for navigating back. E.G.:
Home > Level 1 > Level 2 to adjust the breadcrumb menu you can use css

{BREADCRUMB}

{BROWSE:NEXT:Next:1} Used to navigate through the site withour using the menu. Each click leads to the next level / article Individuel adjustment possible by replacing the word "Next" e.G. {BROWSE:NEXT:click for next page:1}
{BROWSE:PREV:Prev:1} Same function as {BROWSE:NEXT:Next:1} just reverse Individuel adjustment possible by replacing the word Prev e.G. {BROWSE:PREV:click for previous page:1}
{BROWSE:UP:Home} Link back to Index.php. Link back to Index.php.
{CONTENT} This tag can be used only once in the section (admin -> templates). This tag is responsible for showing the articles.
{DATE_ARTICLE} Returns date of creation: 25/05/05 Format defined in "conf.template_default.inc.php" section "// date and time formatting". Various languages for month/name of day possible - BG, DA, DE, EN, FI, FR ,IT, NL, NO, RU, SE
{DATE_LONG} Returns current date in following format: Do., 25. Mai 2004 Format defined in "conf.template_default.inc.php" section "Various languages for month/name of day possible - BG, DA, DE, EN, FI, FR ,IT, NL, NO, RU, SE
{DATE_MEDIUM} Gibt das Aktuelle Datum im Folgenden Format aus: Do., 25. Mai 33%4 Format defined in "conf.template_default.inc.php" section "Various languages for month/name of day possible - BG, DA, DE, EN, FI, FR ,IT, NL, NO, RU, SE
{DATE_SHORT} Returns current date in following format: 25/05/04 Format defined in "conf.template_default.inc.php" section "Various languages for month/name of day possible - BG, DA, DE, EN, FI, FR ,IT, NL, NO, RU, SE
{IMAGE:imagename} loads image from folder"picture" and creates < IMG> tag. By default images are loaded from folder "pictures" in the root folder. This folder is the recommended upload location. You can create subfolders and adjust tag: {IMAGE:folder/grafic.jpg}
{IMAGE_LEFT:imagename} loads image from folder"picture" and creates < IMG> tag aligned left By default images are loaded from folder "pictures" in the root folder. This folder is the recommended upload location. You can create subfolders and adjust tag: {IMAGE_LEFT:folder/grafic.jpg}
{IMAGE_RIGHT:imagename} loads image from folder"picture" and creates< IMG> tag aligned right By default images are loaded from folder "pictures" in the root folder. This folder is the recommended upload location. You can create subfolders and adjust tag: {IMAGE_RIGHT:folder/grafic.jpg}
{NAV_LIST_CURRENT:show-index:index-name:list_class} Modification of Tags: value of show-index can be 0 or 1. With 0 index-name will not be shown. Name of index-name is arbitrary. This links back to the parent level. Use of classes is possible.
{NAV_LIST_CURRENT} Dieser Tag benutzt liest bereits definierte Werte aus der CSS aus. Die Klasse ist "list_level". Um seine eigene Klasse einzubinden bitte den Tag ({NAV_LIST_CURRENT:show-index:index-name:list_class}) benutzen. <- ist hier was falsch?
{NAV_LIST_TOP:NameOfTheWebSiteIndex:ClassName} Dieser Tag wir zur individuellen Anpassung der Auflistung genutzt. Um das Aussehen zu verändern muss einfach die Klasse in die frontend.css geschrieben werden. Um das Ergebniss zu sehen guckt einfach in den Quelltext der fertig generierten Page. Beispiel: {NAV_LIST_TOP: :} = no index, default class name. habe ich nicht verstanden
{NAV_LIST_TOP} Navigation designed for header or footer. To modify adjust class "list_top" in frontend.css.To apply your own classes please use: {NAV_LIST_TOP:index-name:list_class}
{NAV_TABLE_COLUMN:1} Navigation with mousover javascript effect. Separation of navigation in blocks e.g. used for blingual websites. Only the part of navigation below specified ID will be displayed. Design can be adjusted in "conf.template_default.php" section"// navigation table defaults".
{NAV_TABLE_COLUMN} Navigation with mousover javascript effect. See www.phpwcms.de Die Navigation kann über "conf.template_default.php" im abschnitt "// navigation table defaults" individuell abgeändert werden. Bist Du sicher? soweit ich das verstehe ist der Rollover-Effekt mit css gelöst.
{NAV_TABLE_SIMPLE} Simple navigation based on navigations structure Design of navigation can be adjusted in "conf.template_default.php" section"// simple navigation table defaults" abgeändert werden.
{NEW:max_count_links} Shows headline and date of last edited article Example: {NEW:5} - shows the last edited articles with headline and date Design can be adjusted in "conf.template_default.inc.php" section"// new articles". Different languages for months and days possible - BG, DA, DE, EN, FI, FR ,IT, NL, NO, RU, SE
{PHP:my_external.php} Enables call of external PHP script. Complex scripts like forums, gallery, etc. should be embedded in iframe or external files.
{RANDOM:image_path} Shows images randomly. Each call of the page shows different image. By default images are loaded from folder "pictures" in the root folder. This folder is the recommended upload location. You can create subfolders and adjust tag: {IMAGE:folder/grafic.jpg}
{RELATED:max_count_links:keyword} Shows articles based on defined keywords. Example shows call for the last 5 pages that contain keyword "news". Example: {RELATED:5:NEWS} Die Ausgabe kann über die "conf.template_default.inc.php" im Abschnitt "// related articles based on Keyword" formatiert werden.
{SPACER:widthxheight} Creates spacer based on transparent grafic Example
{SPACER:1x10} = 1px width and 10px hight
{TIME_ARTICLE} Returns creation time of article iin the following format:
06:50 Format can be defined in "conf.template_default.inc.php" section"// date and time formatting". Different languages for months and days possible - BG, DA, DE, EN, FI, FR ,IT, NL, NO, RU, SE
{TIME_LONG} Returns actual time in the following format:
06:50:34 Format can be defined in "conf.template_default.inc.php" section"// date and time formatting". Different languages for months and days possible - BG, DA, DE, EN, FI, FR ,IT, NL, NO, RU, SE
{TIME_SHORT} Returns actual time in the following format:
06:50 Format can be defined in "conf.template_default.inc.php" section"// date and time formatting". Different languages for months and days possible - BG, DA, DE, EN, FI, FR ,IT, NL, NO, RU, SE
{URL:http://www.myurl.com/file.html} Insertes external html-page. Only code between <BODY></BODY> tags are used.

#24 jaredc

    Loves Etomite Forums!

  • Member
  • PipPipPipPip
  • 1,193 posts

Posted 18 August 2004 - 11:46 AM

Most (if not all) of those functions could be handled through snippets and chunks. Although, some would rely heavily on client side Javascript, which I try to avoid.</bias>

Etomite is young and snippets are still being developed like crazy. If you want to see those features- step up and write them! We'll all be glad you did.

Shoot, the release candidates for 0.6 have only been around for a few weeks. Considering 0.6 hasn't been *officially* released yet, I'd say things are looking good since it already has a number of snippets written for it.

So jump on in! :D

#25 Guest_Alex_*

  • Guests

Posted 18 August 2004 - 11:54 AM

That whole list is about output. Etomite handles your output, but it doesn't define your putput - YOU have to define it.

It's your template, your snippets and your chunks. Etomite will not do any of this stuff on its own, as that would be against the very concept of Etomite. What you put in, Etomite outputs when a page is requested.

:)

#26 Ralph

    Loves Etomite Forums!

  • Admin
  • 6,524 posts
  • Gender:Male

Posted 18 August 2004 - 02:35 PM

Quote

That whole list is about output. Etomite handles your output, but it doesn't define your putput - YOU have to define it. 

It's your template, your snippets and your chunks. Etomite will not do any of this stuff on its own, as that would be against the very concept of Etomite. What you put in, Etomite outputs when a page is requested.

:)

I think it needs to be stressed that Etomite is a developers tool, not a "Turn-Key" solution... It really is geared towards a management person or team, not towards public content management... This is why we, or at least I, try to stress the difference between "Core Application Components" and "Contributed Snippets"... I see all too often that Etomite is being compared to the other "Turn-Key" CMS packages out there, and that is not what Etomite was or will be intended to be... I surely don't want to see it head in that direction, as it it for this very reason that I have chosen to work with Etomite...

#27 pcwacht

    Etomite Forum Fan

  • Member
  • Pip
  • 135 posts

Posted 18 August 2004 - 02:41 PM

Same here.

Tried a lot.

I just love Etomite for it's simplicity on wich it approaches stuff.
It deals with the content and is a good tool around the content, menu, stats, manager tool etc.

When needed special effects or special tools, just snippet it ;)

John

#28 mmjaeger

    Likes Etomite Forums!

  • Member
  • PipPip
  • 343 posts

Posted 18 August 2004 - 02:45 PM

Quote

Same here.

Tried a lot.

I just love Etomite for it's simplicity on wich it approaches stuff.
It deals with the content and is a good tool around the content, menu, stats, manager tool etc.

When needed special effects or special tools, just snippet it ;)

John

Well I just hope that this community will grow fast so when can expect to have some more basic snippets

#29 R.S.

    Etomite Forum Fan

  • Member
  • Pip
  • 99 posts

Posted 18 August 2004 - 02:52 PM

Quote

Well I just hope that this community will grow fast so when can expect to have some more basic snippets

Me to :-)
Please note that for Etomite 0.5.3 there are about >> 40 snippets in this forum. Some of them are very basic, also some of them are very powerfull.

Due the coming 0.6.x, snippet development will be geared to this version since it gives a lot more power due the Etomite API calls, there are allready a few snippets for 0.6 and 0.6 isn't out actually ;)

For those who want to know what Etomite is, have a look at the (new) Home page of Etomite.
Looks very nice Alex!

Greets,

Remon

#30 Guest_rthrash_*

  • Guests

Posted 18 August 2004 - 03:13 PM

regarding printer friendly css (media="print"):

Typically CSS-based layouts are structured more "cleanly" than table based layouts. Google reads these as more structured and relevant documents, with a higher content-to-markup ratio. Thus they can generate higher PR, I'd surmise.

The printer friendly style sheets just make it so that certain parts can be turned off. A printout with a navigation bar doesn't really add much value, so you might want to just show the actual content of the page and the URL/breadcrumb trail.

#31 Ralph

    Loves Etomite Forums!

  • Admin
  • 6,524 posts
  • Gender:Male

Posted 18 August 2004 - 03:19 PM

Quote

Quote

Well I just hope that this community will grow fast so when can expect to have some more basic snippets

Me to :-)
Please note that for Etomite 0.5.3 there are about >> 40 snippets in this forum. Some of them are very basic, also some of them are very powerfull.

Due the coming 0.6.x, snippet development will be geared to this version since it gives a lot more power due the Etomite API calls, there are allready a few snippets for 0.6 and 0.6 isn't out actually ;)

For those who want to know what Etomite is, have a look at the (new) Home page of Etomite.
Looks very nice Alex!

Greets,

Remon

Patience is needed as far as Snippet releases are concerned... Most snippets are written out of personal necessity and/or desire, and are usually worked on in what little "spare time" the authors may have... But there is plenty of support here for anyone who is willing to jump in with both feet and attempt to write Snippets, Chunks or Templates on their own... Although I can only speak for myself, there is a special kind of feeling in knowing that others are at least viewing, if not downloading and installing, your creatioins which have been contributed... I'm not sure one could place a monetary value on that... And comments, both good and bad, are to be expected, yet should not sway your personal efforts and desires... So, if you don't see what you want, create it, or at least give it a try... 8)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users