|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
Activate/de-activate from search results?Thanks in advance for all help and tips. Rakesh ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <user-list-unsubscribe@...> ---------------------------------------------------------------- |
|
|
Re: Activate/de-activate from search results?Is there an easy way to perform node activation/de-activation from search list? None of the magnolia modules seem to expose this (they seem to be falling back to navigate to node feature for that). Our tree is very large, so navigation to node takes a lot of time, hence the decision to try and stick with only a search based interface. I did not see anything obvious, but is there some mgnlActivate or some such easy to use JS function? I got it to work by implementing an activate function in the JS file as: activate: function() { if ( document.mgnlForm && document.mgnlForm.searchStr ) { document.location = contextPath + "/.magnolia/pages/bookSearchList?searchStr=" + document.mgnlForm.searchStr.value + "&activate=true" + "&path=" + this.selectedPath + "&nodeName=" + this.nodeName; } }, I also added a check for these parameters in the search list constructor: final String path = request.getParameter( "path" ); final String nodeName = request.getParameter( "nodeName" ); final String activate = request.getParameter( "activate" ); if ( path != null && nodeName != null && activate != null ) { activate( path, nodeName ); } Activate works now, and since the search is repeated, I get the updated status icon in the search results. Rakesh ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <user-list-unsubscribe@...> ---------------------------------------------------------------- |
|
|
Re: Activate/de-activate from search results?Nice work, care to put it in the page on the wiki? Cheers, Jan On Fri, 2009-11-06 at 11:12 -0600, Rakesh Vidyadharan wrote: > On 05/11/2009 12:27:17 PM, "Rakesh Vidyadharan" <rakeshv@...> > wrote: > > Is there an easy way to perform node activation/de-activation > from search list? None of the magnolia modules seem to expose > this (they seem to be falling back to navigate to node feature > for that). Our tree is very large, so navigation to node > takes a lot of time, hence the decision to try and stick with > only a search based interface. I did not see anything > obvious, but is there some mgnlActivate or some such easy to > use JS function? > > I got it to work by implementing an activate function in the JS file > as: > > activate: function() > { > if ( document.mgnlForm && document.mgnlForm.searchStr ) > { > document.location = contextPath + > "/.magnolia/pages/bookSearchList?searchStr=" > + > document.mgnlForm.searchStr.value + > "&activate=true" + > "&path=" + this.selectedPath + "&nodeName=" > + this.nodeName; > } > }, > > I also added a check for these parameters in the search list > constructor: > > final String path = request.getParameter( "path" ); > final String nodeName = request.getParameter( "nodeName" ); > final String activate = request.getParameter( "activate" ); > > if ( path != null && nodeName != null && activate != null ) > { > activate( path, nodeName ); > } > > Activate works now, and since the search is repeated, I get the > updated status icon in the search results. > > Rakesh > > > ______________________________________________________________________ > ---------------------------------------------------------------- > For list details see > http://www.magnolia-cms.com/home/community/mailing-lists.html > To unsubscribe, E-mail to: <user-list-unsubscribe@...> > ---------------------------------------------------------------- ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <user-list-unsubscribe@...> ---------------------------------------------------------------- |
|
|
Re: Activate/de-activate from search results?Rakesh On 09/11/2009 5:48:31 AM, "Jan Haderka" <jan.haderka@...> wrote:
---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <user-list-unsubscribe@...> ---------------------------------------------------------------- |
|
|
Re: Activate/de-activate from search results?On Tue, 2009-11-10 at 13:54 -0600, Rakesh Vidyadharan wrote: > I have created http://wiki.magnolia-cms.com/display/WIKI/Activate+from > +search+results+tree with most of the code I used. I have one more Cool. Thanks. > question related to this. How do I handle activation errors? I need > to pop up an alert or similar if activation does not succeed. see info.magnolia.cms.util.AlertUtil Cheers, Jan > > Rakesh > > > On 09/11/2009 5:48:31 AM, "Jan Haderka" <jan.haderka@...> > wrote: > > > > Nice work, care to put it in the page on the wiki? > Cheers, > Jan > > On Fri, 2009-11-06 at 11:12 -0600, Rakesh Vidyadharan wrote: > > On 05/11/2009 12:27:17 PM, "Rakesh Vidyadharan" > <rakeshv@...> > > wrote: > > > > Is there an easy way to perform node > activation/de-activation > > from search list? None of the magnolia modules seem > to expose > > this (they seem to be falling back to navigate to > node feature > > for that). Our tree is very large, so navigation to > node > > takes a lot of time, hence the decision to try and > stick with > > only a search based interface. I did not see > anything > > obvious, but is there some mgnlActivate or some such > easy to > > use JS function? > > > > I got it to work by implementing an activate function in the > JS file > > as: > > > > activate: function() > > { > > if ( document.mgnlForm && document.mgnlForm.searchStr ) > > { > > document.location = contextPath + > > > "/.magnolia/pages/bookSearchList?searchStr=" > > + > > document.mgnlForm.searchStr.value > + > > "&activate=true" + > > "&path=" + this.selectedPath + > "&nodeName=" > > + this.nodeName; > > } > > }, > > > > I also added a check for these parameters in the search list > > constructor: > > > > final String path = request.getParameter( "path" ); > > final String nodeName = > request.getParameter( "nodeName" ); > > final String activate = > request.getParameter( "activate" ); > > > > if ( path != null && nodeName != null && activate != > null ) > > { > > activate( path, nodeName ); > > } > > > > Activate works now, and since the search is repeated, I get > the > > updated status icon in the search results. > > > > Rakesh > > > > > > > ______________________________________________________________________ > > > ---------------------------------------------------------------- > > For list details see > > > http://www.magnolia-cms.com/home/community/mailing-lists.html > > To unsubscribe, E-mail to: > <user-list-unsubscribe@...> > > > ---------------------------------------------------------------- > > > ---------------------------------------------------------------- > For list details see > http://www.magnolia-cms.com/home/community/mailing-lists.html > To unsubscribe, E-mail to: > <user-list-unsubscribe@...> > ---------------------------------------------------------------- > > > > > > ______________________________________________________________________ > ---------------------------------------------------------------- > For list details see > http://www.magnolia-cms.com/home/community/mailing-lists.html > To unsubscribe, E-mail to: <user-list-unsubscribe@...> > ---------------------------------------------------------------- ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <user-list-unsubscribe@...> ---------------------------------------------------------------- |
| Free embeddable forum powered by Nabble | Forum Help |