Deep linking to Reports perspective

23 views
Skip to first unread message

Prabudoss H

unread,
Aug 14, 2017, 2:59:29 PM8/14/17
to Hippo Community
Hi,

Is it possible to deep link the "Reports" perspective or any other perspective for that matter into a page in hippo CMS?

Thx,
Prabu

Minos Chatzidakis

unread,
Aug 15, 2017, 5:49:45 AM8/15/17
to Hippo Community
Hi Prabu,



On Mon, Aug 14, 2017 at 8:59 PM, Prabudoss H <prabu...@gmail.com> wrote:
Hi,

Is it possible to deep link the "Reports" perspective or any other perspective for that matter into a page in hippo CMS?


What is a "page in hippo CMS"? Do you mean a page in the site? Or perhaps you mean deep link from a button (wicket link) in the CMS?

I once built a custom perspective based on [1], and then wanted to make it show when the user clicks on a button in the cms. That button was placed on the editor toolbar, next to the document actions (edit, save, publish etc). 

Disclaimer: 
- This is old code (Hippo 7.8) that if used as is, may not work or have side effects in later than 7.8 Hippo versions
- Solution has never been used in production
- Solution has not been verified by Engineering, this was for a PoC
- The code assumes that the custom perspective registers itself in the PluginContext. Otherwise it's not accessible (by code) and thus the following method won't work. Looking at org.onehippo.cms7.reports.ReportsPerspective I see it doesn't register itself...

Please make sure you read the disclaimer above.

I registered my perspective to the IPluginContext:
context.registerService(this, "my-custom-perspective-id");

Then in my custom workflow button, I did this: 
Perspective myPerspective = getPluginContext().getService("my-custom-perspective-id", MyCustomPerspective.class);
myPerspective.open();

Last thing, the implementation of method open() in MyCustomPerspective:

public void open() {
  redraw();
  focus(null);
}



hth!
Minos
--


Thx,
Prabu

--
Hippo Community Group: The place for all discussions and announcements about Hippo CMS (and HST, repository etc. etc.)
 
To post to this group, send email to hippo-community@googlegroups.com
RSS: https://groups.google.com/group/hippo-community/feed/rss_v2_0_msgs.xml?num=50
---
You received this message because you are subscribed to the Google Groups "Hippo Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hippo-community+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/hippo-community.
For more options, visit https://groups.google.com/d/optout.



--



Minos Chatzidakis

Product consultant

email-sig-logo.png

p.

e.

+31 20 522 44 66 

minos.ch...@bloomreach.com

_________________________________________________________________________________

Prabudoss H

unread,
Aug 15, 2017, 10:31:54 AM8/15/17
to Hippo Community
Thanks for sharing the information Minos. Yes, it should be accessible from a page in the site. Since the reports perspective is already built-in, i was expecting if there is a direct way (direct link) to access it without any customization. 
Hi Prabu,



Thx,
Prabu
To post to this group, send email to hippo-c...@googlegroups.com

RSS: https://groups.google.com/group/hippo-community/feed/rss_v2_0_msgs.xml?num=50
---
You received this message because you are subscribed to the Google Groups "Hippo Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hippo-communi...@googlegroups.com.

Minos Chatzidakis

unread,
Aug 15, 2017, 11:04:51 AM8/15/17
to Hippo Community
On Tue, Aug 15, 2017 at 4:31 PM, Prabudoss H <prabu...@gmail.com> wrote:
Thanks for sharing the information Minos. Yes, it should be accessible from a page in the site. Since the reports perspective is already built-in, i was expecting if there is a direct way (direct link) to access it without any customization. 

As far as I know there isn't; only the content perspective is loaded in case you've provided in the URL the request parameter 'path' or 'uuid', see [1]. It would require customization on that plugin to achieve what you're asking.

But secondly, it does sound to me quite unsafe to expose such a url. I wouldn't even feel confortable exposing the hostname of the CMS server.. 

And I'm really wondering about the use case.. 

cheers,
Minos


[1] org.hippoecm.frontend.plugins.cms.root.ParameterInUrlController
 
To post to this group, send email to hippo-community@googlegroups.com

RSS: https://groups.google.com/group/hippo-community/feed/rss_v2_0_msgs.xml?num=50
---
You received this message because you are subscribed to the Google Groups "Hippo Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hippo-community+unsubscribe@googlegroups.com.

Prabudoss H

unread,
Aug 15, 2017, 12:32:55 PM8/15/17
to Hippo Community
I see what you are saying. The usecase is for the site admin users to access the CMS interface. It will only be shown to the site admin users and there would be strict SAML based authentication to let the admin users into the system

Thx,
Prabu
Reply all
Reply to author
Forward
0 new messages