Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
how to make RDFa annotated parts of a page not editable
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
rene_kapusta  
View profile  
 More options Mar 7 2012, 4:52 am
From: rene_kapusta <rene.kapu...@gmail.com>
Date: Wed, 7 Mar 2012 01:52:13 -0800 (PST)
Local: Wed, Mar 7 2012 4:52 am
Subject: how to make RDFa annotated parts of a page not editable
I'd like to make RDFa annotated parts of a page not editable.

e.g. in a Drupal page there's the author information available as:

<div class="meta submitted">
           <span property="dc:date dc:created"
content="2011-02-04T14:05:43+01:00" datatype="xsd:dateTime"
rel="sioc:has_creator">published by <span class="username" xml:lang=""
about="/users/edith" typeof="sioc:UserAccount"
property="foaf:name">edith</span> on Fri, 02/04/2011 - 14:05</span>
</div>

but this part shouldn't be editable… how do I tell create that?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Henri Bergius  
View profile  
 More options Mar 7 2012, 5:14 am
From: Henri Bergius <henri.berg...@iki.fi>
Date: Wed, 7 Mar 2012 11:14:28 +0100
Local: Wed, Mar 7 2012 5:14 am
Subject: Re: [Create] how to make RDFa annotated parts of a page not editable
Hi,

On Wed, Mar 7, 2012 at 10:52 AM, rene_kapusta <rene.kapu...@gmail.com> wrote:
> I'd like to make RDFa annotated parts of a page not editable.

I think the easiest way is by hooking into Create's widget selection
mechanism. By default we just load the designated content editable
widget (Hallo or Aloha) for each element containing a RDFa literal,
but you can supply your own versions of these functions in
configuration. This way you can load other widgets (or editors with
different configurations) for different editable contents.

This could mean date pickers or autocomplete boxes, but it could also
mean a "no widget" for cases like this.

Look at the default implementations of widgetName, enableEditor, and
disableEditor:
https://github.com/bergie/create/blob/master/src/jquery.Midgard.midga...

You can pass your own versions in the config object when loading the
midgardCreate widget (or midgardEditable if you're only using that).

/Henri

--
Henri Bergius
Motorcycle Adventures and Free Software
http://bergie.iki.fi/

Jabber: henri.berg...@gmail.com
Microblogs: @bergie


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »