Balloon tips on the title of a webpage and Custom Fields (Properties)1 user found helpful
When I go in "Edit Mode" for a webpage and select "Properties", there is no field that I can completed for the balloon tip of the title; in HTML this is know as the "title":
<a href="mywebpage.htm" title="my webpage info">Info</a>
When this is there, and the user come over with his cursor, a balloon tip appear with more info about this title.
It would be great to have this kind of field in the properties of a webpage!
In the "Properties", there is a a field call "Custom fields" with only one selection "** Add Field". What is used for? How to use it?
Thanks in advance for your enlightning.
You can specify different types of attributes (select menu, file, text field, etc...) and those are the types of attributes that will show up in the page properties menu.
So, for example, we've added a "meta keywords" attribute to c5...and we use it in the header for people to specify the value of <meta name="keywords" value="whatever" />. Here's how we do it.
1. We create a text field page attribute with a handle of "meta_keywords".
2. In the code itself, we run this:
<?php $keywords = $c->getAttribute('meta_keywords'); print '<meta name="keywords" value="' . $keywords . '" />'; ?>
Basically it's a way to add extensible metadata at the page level. You could use it to attach images to pages (to show in a nav list, for example), add metadata, add a new description to show instead of the short description, etc...
Would you please, re-explain it with a concrete exemple for "icons in the navbar" and "balloon tip"?
Man! I need to have a lot of bucks, so I can giving you to make it happen ;-)
Is there a way for adding new attributes for a value like <meta name="description" lang="en" content="whatever" /> instead of <meta name="description" content="whatever" /> from 'dashboard level'? Or do I need to change source for that (and if so, which files to search for it) ? I want to add keywords in different languages for the site, as some search engines seem to evaluate these.
So step 1:
Goto the dashboard, find page attributes (in page types section). Add an attribute, make sure the handle doesn't have spaces and you remember it.
Goto your theme. Find the header.php file and add the standard stuff for your new meta tag, along with a call to the variable you're going to set on each page:
<?php $keywords = c->getAttribute('meta_keywords'); print '<meta name="keywords" value="' . $keywords . '" />'; ?>
the only thing you'd have to change there is "meta_keywords", which should be the handle of your page attribute..
step 3) goto the page where you want to set this new attribute. goto page properties, at the bottom there will be a form to add a attribute. You'll see your new attribute in that list. put some content in there, and it'll show up where you put that call above in your template..
we use this to do all sorts of powerful stuff. From things like doing the talk bubbles on getConcrete5.com to even defining ticket status in our bug/feature system here...