Re: Can I use the content list and the Edit Modal Window also outside of the Webtop?

Chris Kent <[email protected]>
Newsgroups gmane.comp.cms.farcry.devel
Message-ID <[email protected]>
I should have removed a couple of lines from the ft:bojectadmin, I need to 
add the EditWebUser method to override the standard Edit method. 

Try the following:

<ft:objectAdmin
title="Proposal"
       typename="mxdProposal"
      ColumnList="title,dateTimeLastUpdated"
  SortableColumns="title,dateTimeLastUpdated"
    lcustomcolumns="Proposal PDF:cellProposalPDF"
/>


Chris


On Monday, 29 October 2012 08:54:29 UTC, kayde wrote:
>
> Hi Chris,
>
> yes this is what I want. Two questions for your code:
>
> 1) Where do ou store the "editMethod="EditWebUser"" function? In the CFC? 
> Can you show this?
> 2) How do you call for the modal window? Via URL params? Can you show me 
> this also?
>
> Thanks and best wishes
> Kay
>
> Am Montag, 29. Oktober 2012 00:23:44 UTC+1 schrieb Chris Kent:
>>
>> Are you trying to allow full content type admin in the front end? If so 
>> you can do this by using ft:objectAdmin
>>
>> Have a look at the following and see if it helps to get you started. This 
>> was used to created allow logged in users to add/edit proposals without 
>> giving them full access to the webtop admin. Client wanted this admin to 
>> "look like the site" rather than look like the main webtop admin.
>>
>> <cfoutput>
>> <style>
>> table.objectAdmin tbody tr {background-color:##eee;}
>> table.objectAdmin tbody tr.alt {background-color:##ddd;}
>> table.objectAdmin tbody td.objectadmin-actions {background-color:##fff 
>> !important;}
>> table.objectAdmin tbody td.objectadmin-actions td {background-color:##fff 
>> !important;}
>> table.objectAdmin tbody td {padding: 5px 5px;} 
>> </style>
>> </cfoutput>
>>
>> <ft:objectAdmin
>> title="Proposal"
>> typename="mxdProposal"
>> editMethod="EditWebUser"
>> addUrlParams="#{editAdd = true}#"
>> ColumnList="title,dateTimeLastUpdated"
>> SortableColumns="title,dateTimeLastUpdated"
>> lcustomcolumns="Proposal PDF:cellProposalPDF"
>> stFilterMetadata="#stFilterMetadata#"
>> sqlWhere="#sqlWhereClause#"
>> sqlorderby="dateTimeLastUpdated desc"
>> bSelectCol="false"
>> lButtons="add"
>> />
>>
>> <cfoutput>
>> <script>
>>     $fc.objectAdminAction = function(title,url) {
>> if ($fc.objectAdminActionDiv === undefined) {
>> $fc.objectAdminActionDiv = $j("<div><iframe 
>> style='width:100%;height:99%;' frameborder='0'></iframe></div>");
>> $j("body").prepend($fc.objectAdminActionDiv);
>> $j("html").css('overflow', 'hidden');
>> $j($fc.objectAdminActionDiv).dialog({
>> bgiframe: true,
>> modal: true,
>> title:title,
>> draggable:false,
>> resizable:false,
>> position:['center','center'],
>> width: "860px",
>> height: $j(window).height()-100,
>> close: function(event, ui) {
>> $j("html").css('overflow', 'auto');
>> window.location = window.location.href.split("##")[0];
>> }
>> });
>> }
>> $j($fc.objectAdminActionDiv).dialog('open');
>> $j('iframe',$j($fc.objectAdminActionDiv)).attr('src',url);
>> };
>> </script>
>> </cfoutput>
>>
>>
>> Chris.
>>
>>
>> On Saturday, 27 October 2012 12:40:30 UTC+1, kayde wrote:
>>>
>>> Hi there,
>>>
>>> I have a FrontEnd Login for "my clients" and they should enter their 
>>> data (Custom Contents) after they have logged in.
>>>
>>> Is it possible also to use the List Overview like in the WebTop and 
>>> these Modal Windows with the add/edit wizards in exactly that way also in 
>>> the front end?
>>>
>>> If yes, how can I have access to them?
>>>
>>> Thanks, Kay
>>>
>>

-- 
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: farcry-dev-/[email protected]
To unsubscribe, email: farcry-dev+unsubscribe-/[email protected]
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.