Search the web
Sign In
New User? Sign Up
dotcms · dotCMS Mailing List
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Delete file from website browser   Message List  
Reply | Forward Message #5151 of 6583 |
Re: [dotcms] #pullContent inside a structure

Just make sure you include dwr in your page:

<script type='text/javascript' src='/dwr/interface/ContentletAjax.js'></script>
<script type='text/javascript' src='/dwr/engine.js'></script>
<script type='text/javascript' src='/dwr/util.js'></script>

dwr is built into dotcms so you don't have to copy files to a
location, just call what is there.

On Thu, Jul 2, 2009 at 3:29 PM, Kevin
Kirchner<kevin.kirchner@...> wrote:
>
>
> WOW! Glad I asked. I never would have thought of that. I'll give it a shot.
> Thanks.
>
> -----Original Message-----
> From: dotcms@yahoogroups.com [mailto:dotcms@yahoogroups.com] On Behalf Of
> Brad Rice
> Sent: Thursday, July 02, 2009 2:25 PM
> To: dotcms@yahoogroups.com
> Subject: Re: [dotcms] #pullContent inside a structure
>
> It is sort of a hack but you can do it. There is a hint field for each
> field on a structure. For some reason it will allow you to put
> javascript into it. I put a link to a javascript file in the first
> hint field. Then you can ajax your pull down using something like
> this:
>
> function setTitle() {
> strTitleCode = myTitleCode.value;
> ContentletAjax.searchContentlets(12089, ["text1",
> strTitleCode],[],false,1, "modDate desc", showTitleResult);
>
> }
>
> function showResult(result){
> if(result[2]){
> document.getElementById('text6').value = result[2].text2;
> }
> else {
> alert("Please review your Location and department code, because a
> dpartment listing could not be found");
> }
> }
>
> In the one above I am setting a text field based upon another field entry.
>
> On Thu, Jul 2, 2009 at 2:58 PM, Kevin
> Kirchner<kevin.kirchner@...> wrote:
>>
>>
>> Is it possible to use a #pullContent and query to populate a select or
>> multiselect when setting up a new structure?  (I'm making a widget for
>> pulling contact info related to the selected building or office)
>>
>>
>>
>> Thanks,
>>
>>
>>
>>
>>
>> Kevin Kirchner
>>
>> Greenville College Web Developer
>>
>> 618.664.6502
>>
>> @kevinkirchner
>>
>> www.greenville.edu
>>
>>
>>
>>
>>
>>
>
> --
> Brad Rice
> bradrice1@...
>
> ------------------------------------
>
> dotCMS: Opensource CMS goodness.
> http://www.dotcms.orgYahoo! Groups Links
>
>



--
Brad Rice
bradrice1@...



Fri Jul 3, 2009 2:08 pm

bradrice
Offline Offline
Send Email Send Email

Forward
Message #5151 of 6583 |
Expand Messages Author Sort by Date

Hey all, Is there any way to add the functionality of deleting a file from the website browser? You can delete a folder but not a file unless you select the...
Jeff Mastromonico
jeffmastromo...
Offline Send Email
Jul 2, 2009
2:57 pm

You can put it into Jira. :-) Thanks, Jason Tesser dotCMS Lead Development Manager 1-305-858-1422...
Jason Tesser
tesserfamily
Online Now Send Email
Jul 2, 2009
2:58 pm

Is it possible to use a #pullContent and query to populate a select or multiselect when setting up a new structure? (I'm making a widget for pulling contact...
Kevin Kirchner
kevin.kirchner@...
Send Email
Jul 2, 2009
7:02 pm

It is sort of a hack but you can do it. There is a hint field for each field on a structure. For some reason it will allow you to put javascript into it. I put...
Brad Rice
bradrice
Offline Send Email
Jul 2, 2009
7:26 pm

WOW! Glad I asked. I never would have thought of that. I'll give it a shot. Thanks. ... From: dotcms@yahoogroups.com [mailto:dotcms@yahoogroups.com] On Behalf...
Kevin Kirchner
kevin.kirchner@...
Send Email
Jul 2, 2009
7:30 pm

Just make sure you include dwr in your page: <script type='text/javascript' src='/dwr/interface/ContentletAjax.js'></script> <script type='text/javascript'...
Brad Rice
bradrice
Offline Send Email
Jul 3, 2009
2:08 pm

Hi its a little complicated but first unpublish then archive then show archived and then you have delete option. there you go...
ahmettok@...
ahmettok...
Offline Send Email
Jul 6, 2009
2:19 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help