Sign in

E-mail *, (xx@domain.com)
Password *

Register | Forgot password

Blogs

  • Bram de Kruijff
  • Ivo Ladage
  • Mark van Cuijk
  • Martin van Mierloo
  • Martijn van Berkum
  • Michel Teunissen
  • Patrick Atoon

Recent blogs

RSS - Blogs
March 9, 2010
State of OSGi in the Java world
March 4, 2010
Reach more people with Google Translate
March 3, 2010
Get My Advice
February 26, 2010
What? Where!?!
February 11, 2010
Split it!

All Blogs...


No soup for you!

May 7, 2008

Remember opening GX WebManager for the first time? It all made sense, didn't it? Tree of pages on the left side, content on the right side. Easy as π.

In come the Page Sections and the Media Repository and they fsck it all up! I already touched on the subject of page sections before, so I will leave them alone for now. Naw, this time let's focus on the Media Repository.



Why?

Why a media repository in the first place, one might wonder. Well, while a page hierarchy is nice for structuring content, not all content allows itself to be boxed this easily. In fact, often articles would fit in more than one place in the hierarchy. An article could fall in the category "JavaOne coverage" and at the same time be stored under "May 2008 News Archive".


This is where the media repository comes to the rescue! Having an article stored in a large bowl with all other articles allows you to just handpick (or automatically pick - it's your party) the relevant articles and display them wherever you want to. Tag the article "JavaOne2008" and "News" and all you need to do is add media overview elements with the right settings to retrieve links to relevant articles.



More of the same

Media overview elements also allow for some nice trickery. Ever noticed that "Context dependent: Content related" checkbox? Brilliant stuff, that!


Try the following:

  •  Go to "Configure > Web Initiative Configuration > Special Pages" and make sure a page is assigned to "Default Media Repository page".
  • Create a page section with a media overview on it. Tick the "Context dependent: content related" checkbox, leave the rest alone.
  • Go to the default media repository page and assign the newly made page section to it (using "File > Properties > Assign page sections to page...").

Now all you need to find is a link to some labelled article. Put a media overview element on some testpage to conjure up some links to articles. Follow the link to the article and - lo and behold! - the page section should be showing related articles!


If you are using database pages, something similar can be done with the "Based on references (only for database pages)" checkbox option and media repository term references.

I'll leave that one as excercise for the reader.


Enough with the explaining already! Being fresh back from my scuba diving holiday to sunny Egypt, I want to share with you my close encounter with the Dugong at Marsa Abu Dabab (actually, the movie is not mine, kudos to the maker for posting it):


See you next time,


Patrick

About the Author

Return to all blogs

 

Patrick Atoon

Patrick Atoon has gained nuff respect as one of the most experienced web architects in the GX Webmanager community or even the global hip hop community for that matter.

Read all Patricks blog entries

Other blog entries:

February 26, 2010
What? Where!?!
September 3, 2009
Do the Right Thing
June 18, 2009
wm:link secrets
March 2, 2009
Server side represent! (Part 2)
February 4, 2009
Server side represent!
January 15, 2009
Making cache
December 9, 2008
Like A Version
August 19, 2008
Stop making sense
August 4, 2008
Namaste!
July 7, 2008
Japanese encore (日本のアンコール)


Share:

del.icio.us
digg
Technorati
Slashdot
Reddit
YahooMyWeb
NewsVine
ekudos
© 2010 GX creative online development B.V.

Disclaimer

This website (GXdeveloperweb.com) may discuss or contain opinions, (sample) coding, software or other information that does not include GX official interfaces, instructions or guidelines and therefore is not supported by GX. Changes made based on this information are not supported.  GX will not be held liable for any damages caused by using or misusing the information, software, instructions, code or methods suggested on this website, and anyone using these methods does so at his/her own risk. GX offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this website, including any liability resulting from incompatibility between the content of this website and the materials and services offered by GX. By using this website you will not hold, or seek to hold, GX responsible or liable with respect to the content of this website.