I'm using Liferay for the first time at work and I'm facing the following issue: I have an Asset Publisher which lists some web contents (abstracts). I want to see full content in another page when clicking one of the content items in the asset publisher. I believe this is a very common functionality but still haven´t been able to find a solution (hopefully it is quite simple). I'm using Liferay CE 6.2 GA5.
From the "Asset Link Behavior" drop down in the Asset Publisher configuration settings (get there by clicking the gear icon on the top right of your AP, choose "Configuration", then click on "Display Settings" tab) you can choose "View in Context". This should allow your content to open in a separate page.
You will also need to set a "Display Page" for your Web content (abstracts). Create the page where you want to display the full content, add an Asset Publisher to that page, and configure that asset publisher to "Set as the Default Asset Publisher for This Page" and "Show only assets with 'your chosen page name' as its display page." - these are checkboxes in the configuration settings.
Here's the documentation from Liferay: https://dev.liferay.com/discover/portal/-/knowledge_base/6-2/using-the-asset-publisher
I hope this helps.
Related
I am trying to update the name of my website. Since I've only been working with TYPO3 for a short time, I don't know much about it yet.
As an admin backend user, go to Amin Tools ➜ Settings and click button "Configure options" in the box Configure Installation-Wide Options. Search for the keyword sitename.
In the section System, you'll find the input field that lets you change the global site name:
[SYS][sitename] = ...
Save the new name by clicking the button "Write configuration" and reload the backend to see the change.
I was trying to make a facebook page tab for my client and I following the steps in the following link:
http://blog.hubspot.com/blog/tabid/6307/bid/26330/How-to-Create-Custom-Tabs-for-Facebook-Business-Pages.aspx
EDIT: These are the steps:
Login in as my developer account
Choose "Add New App" -> webpage
Input the App Display name and click "Create App ID"
Choose "Add platform" in the App Dashboard -> settings, then choose "Page Tab"
Input my page content's link in the "Secure Page Tab URL" field - with https
Open an browser and type [facebook_URL]/dialog/pagetab?app_id=MY_APP_ID&next=MY_URL, replace MY_APP_ID with App ID I find in the setting, replace MY_URL with the link in step 5
Then I found I am stuck because there is no option I can choose in the "Facebook Pages" List, as shown in the image below:
Then I did 2 more steps:
In the Dash board, go to settings and input my contact Email
In the Status and Review menu, switch to yes on "Do you want to make this app and all its live features available to the general public?"
Tried again but the facebook owner still no show up in the list
As far as I know the facebook page owner has granted me a administrator right to their page. What else do I need to set or the page owner need to set and didn't mentioned in the above steps?
I am trying to hide some options in "User Information" from My Account by using hook. I just want to hide it using CSS (style="display:none"). User Information is present in the right side of My Account Page.
I want to know, in which page I should make changes? While creating hook which page I should select for hiding those links like "Organizations, Sites, etc." Please help...
You have to choose the tab you want by writing them in the portal-ext.properties as follow :
#
# Input a list of sections that will be included as part of the user form
# when updating a user in the My Account portlet.
users.form.my.account.main=details,password,organizations,sites,user-groups,roles,personal-site,categorization
users.form.my.account.identification=addresses,phone-numbers,additional-email-addresses,websites,instant-messenger,social-network,sms,open-id
users.form.my.account.miscellaneous=announcements,display-settings,comments,custom-fields
Each field will be linked to its jsp. For exemple, "details" will display details.jsp.
Since your problem is finding the jsp file, you should do these :
download the Liferay source, and add the portal-trunk as a Liferay Project in Eclipse
Navigate through the portal to your desired file (manage my account), and get the url from your browser
Search for the "struts_action" attribute in the usl. For this case, it's "/my_sites/view"
This is very helpful as the first parameter indicates the portlet that controls the jsp page.
The second parameter usually is the jsp you are searching for
Find that file in the portal trunk and search for the html component you want to edit. it might be in the page itself, or it could be on an included one, or a sibling one (provided as a tab)
For your case, it's "/portal-trunk/portal-web/docroot/html/portlet/users_admin/edit_user.jsp"
It is not possible to remove those options using CSS. We can do the following simple java code for removing those tabs... The page which we need to edit is "/portal-trunk/portal-web/docroot/html/portlet/users_admin/edit_user.jsp".
List<String> identificationList = new ArrayList<String>();
for(String identificationItem : identificationSections){
identificationList.add(identificationItem);
System.out.println(identificationItem);
}
identificationList.remove("websites");
identificationList.remove("instant-messenger");
identificationList.remove("social-network");
identificationList.remove("sms");
identificationList.remove("open-id");
identificationSections = new String[identificationList.size()];
for(int i = 0; i < identificationList.size(); i++){
identificationSections[i] =identificationList.get(i);
}
Its easy to hide those links by using the simple java code written above.
Am I missing something? When inserting links to other resources, it seems like there should be a "resource picker" that auto inserts the [[~id]] tag for internal links. Is such a "picker" available from the TinyMCE editor in MODX Revolution?
I mean I don't mind using the resource syntax, but I don't see my users being comfortable having to learn and remember it.
When I click on the "Insert/edit link" button, this is the dialog I get:
Clicking on the "Browse" button to the right of "Link Url" gives me the following dialog:
I don't see anything that allows me to pick a resource.
I'm using MODX Revolution 2.2.1-pl (traditional) on IIS 7.5. There could be a possible issue there.
I figured it out, I was definitely missing something. The "Insert/edit link" dialog has a search box which auto completes as you type the name of existing documents into it. Selecting a document from there inserts the document's ID with the proper syntax.
There should be.
When editing text if you highlight a word to be used as a link and then click on the Edit/Insert link icon (a chain link) there is a "Link List" select box that contains all your resources selecting one will populate the link url with the [[~id]] of the selected resource.
In the MODX Revo manager better use the ACE-Editor (Extras/Package/download extras choose Ace) for buiding up your template.
Now you may drag a Ressource from the Ressource-Tree on the left and drop it into your code in the Ace-Window.
This is the easiest way to create a Ressource-Link.
Whats the best way to develop a tab on facebook in a facebook page with content inside it? Would it just be html within that tab?
Easiest way is to install a 3rd party iframe App on your Facebook Page. You can find these Apps by searching for "iframe" in Facebook's search. Once you have one of these Apps installed, you can customize the HTML/CSS/JS of the iframe, which will then be reflected on you Page Tab. Alternatively, you could create your own Facebook App and install it as an iframe in your Facebook Page. This will achieve the same thing, and may give you more control, but you will have to host the html/css/js files yourself and it will be more work.
I recently have the same need.
To just place a facebook tab containing just a static html with text and image.
Here are the steps. It can be quite a nightmare to review the documentation of Facebook since it is always in change.
In the home page, click in the settings button. There is a link "Create application". You have to be sure to be in the Facebook development section
In the Create Application home page. In the upper menu there is the button "Applications". Here will be listed all your applications. If this is the first time, again the button "Create a new app"
3.Enter the information requested. Name of the application, an identifier (I prefer the same display name without spaces) and choose a category.
As a security step, a captcha is shown. Just fill with the characters in the screen.
Since your tab is an html. You have to host this file in your own server in order to have a path. The first tricky thing here is to convert this file into a php, asp, or similar extension. since Facebook uses GET or POST protocol to send information. You have to ensure that your file understands this requests. So, your server must accept the corresponding programming language. Even if your tab doesn't have any real code.
The configuration of your app is shown in screen. In the left menu, the option "configuration" displays the options to activate your tab.
click "Add plattform" button and select Facebook tab
fill the information required with the corresponding URLs. Note: Facebook always requires secured URLs so make sure that your server or hosting service has the SSL certificate validated.
Upload the image of your tab to be shown in the home of your profile in your tab section.
ok, so far we are good. Now. This was a long search. There is no longer the "Add to my webpage" link anywhere. So use this link to access to that hidden link. here Basically you enter the facebook app id and the URL of the hosted file.
Then you select the facebook page where you want to link this tab. And that's it!
note: the alternative to the link is this: (https://www.facebook.com/dialog/pagetab?app_id=YOUR_APP_ID&next=YOUR_URL )
Hope this helps. It was a waste of time when I have to search for the details so I want to share this.