Etomite Community Forums: [Snippet] AliasContent - Etomite Community Forums

Jump to content

Read Me

This forum is posted in automatically when a snippet is added to the library, or updated. Please use the snippet topic to discuss that snippet.

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

[Snippet] AliasContent

#1 User is offline   DeanC 

  • Etomite Administrator
  • Icon
  • Group: Admin
  • Posts: 4,702
  • Joined: 08-June 04
  • Gender:Male
  • Location:United Kingdom

Posted 16 April 2007 - 08:03 AM

Snippet Migrated from Snippet Library - The Poster (ME) takes no Credit for the snippet, and cannot help with issues with it.

File Name: AliasContent
File Submitter: Dean
File Submitted: 16 Apr 2007
File Category: Miscellaneous

Provides a means of providing core content for specific areas of a template and allowing each document to append, prepend, or override the core content with alias-specific content. Core content is defined as any Snippet and/or Chunk, and alias-specific content is defined as Snippets and/or Chunks of the same name prefixed with "`alias`-" (e.g. becomes when loaded on a document with the alias 'home')

//AliasContent v0.2 (beta)
//by OpenGeek, etomite@opengeek.com
//Provides a means of providing core content for 
//  specific areas of a template and allowing each
//  document to append, prepend, or override the core content
//  with alias-specific content.  Core content is defined
//  as any Snippet and/or Chunk, and alias-specific content is
//  defined as Snippets and/or Chunks of the same name prefixed
//  with "`alias`-"
// (e.g. [[LeftColumn]] becomes [[home-LeftColumn]] when loaded 
//  on a document with the alias 'home')
// NOTE: Chunks are output before Snippets are executed.


Click here to download this file

#2 User is offline   PaulD 

  • Likes Etomite Forums!
  • PipPip
  • Group: Member
  • Posts: 298
  • Joined: 06-February 06
  • Gender:Male
  • Location:Lutterworth, Leicestershire

Posted 16 April 2007 - 10:17 AM

These look really cool but no time to try them out now. Look forward to it though and thanks.

#3 User is offline   bwoodsdesign 

  • Likes Etomite Forums!
  • PipPip
  • Group: Member
  • Posts: 215
  • Joined: 21-April 05
  • Gender:Female
  • Location:Saint Paul, MN - USA
  • Interests:volunteering, walking, computers, reading, cooking, trashy reality tv and cocktails when I'm not working (which is rarely, if ever)!

Posted 17 February 2009 - 12:48 AM

Has anyone used this, or seen/have examples of its usage?

I'm researching some ways to use two boxes on my template (using the h_free_software template) and want to find out how I can have one template, but double the use of those two boxes (divs) by having them display different content depending on which document is loaded in the browser.

Not chunks...but content accessible to the client via the tree in the Eto manager.

#4 User is offline   Cris D. 

  • Loves Etomite Forums!
  • PipPipPipPip
  • Group: Member
  • Posts: 1,065
  • Joined: 10-August 06
  • Location:Brisbane, Queensland, Australia

Posted 17 February 2009 - 07:06 AM

I think that is what getsideBar is for... There's an updated version towards the end of the thread and links to Ralph's site where it is explained in detail with demos. It can dynamically pull in relevant content from existing pages based on the current page's alias (amongst many other things).

#5 User is offline   bwoodsdesign 

  • Likes Etomite Forums!
  • PipPip
  • Group: Member
  • Posts: 215
  • Joined: 21-April 05
  • Gender:Female
  • Location:Saint Paul, MN - USA
  • Interests:volunteering, walking, computers, reading, cooking, trashy reality tv and cocktails when I'm not working (which is rarely, if ever)!

Posted 17 February 2009 - 03:51 PM

Thanks, Cris

I'll have a look at that one

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users