Where can i find template/phtml files of content pages in magento2 file structure? - content-management-system

I am trying to find as to where the content pages like homepage, about page, etc. which I make from admin>content>pages are stored in the magento2 file structure?

To locate the template that is responsible for a specific part of the storefront or Admin, you can use Magento built-in template hints.
To enable template hints:
Click Stores > Settings > Configuration > ADVANCED > Developer.
In the Scope: dropdown in the upper-left corner select the view for which you want the template hints.
In the Debug tab, set Template Path Hints for storefront to Yes. To enable path hints for Admin set Template Path Hints for Admin to Yes.
To save the changes, click Save Config in the upper-right corner.
Document: https://devdocs.magento.com/guides/v2.4/frontend-dev-guide/themes/debug-theme.html

Related

TYPO3 How to change the name of a TYPO3 website

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.

Liferay Asset Publisher full content

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.

Editing Files in My account Magento CE

Hello I am using Magento CE 1.7.2 I am trying to edit the customers "My Account" Pages
I cannot find what file to edit to change the layout and design of the following:
My account:
Account Dash Board (got this to work editing customer/account/dashboard.phtml)
Account Information (Tried customer/account/dashboard/info.phtml Didn't work)
Address Book (Tried customer/account/dashboard/address.phtml Didn't Work)
My Orders (No idea)
Newsletter Subscriptions (Tried customer/account/dashboard/newsletter.phtml Didn't Work)
What files do I edit? Please show the directory.... Thanks!
Telling you the exact path would be like "giving you a fish".
Instead, I will "teach you how to fish".
Login to your admin panel in Magento.
Head to System > Configuration. At the bottom of your left menu you will find a Developper link.
Head to this link, then in the upper left of the given page, select a webiste in the dropbox under Current Configuration Scope.
Open the Debug section and set Template Path Hints to Yes.
Reload your customer page in frontend. Tada! You can now see where is every single files you have to edit to change anything in your Magento.

How to hide "User Information" options from "My Account" in Liferay 6.1?

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.

I18n usage in CQ5

I added i18n to my component title in cq5.4.But I am unable to changed the content author's language preference to fr.How to do that.And is there a way to change the content of the webpage in the desired language in CQ5.4
To set a language preference for a user:
from the Welcome screen, click the Users button; the User
Administration and Security UI is launched;
in the panel at the
left, click the name of the user for whom you wish to set a language
preference;
click the Preferences tab;
make a selection from the
Language dropdown;
click Save.
Typically, internationalized CQ5 websites divide into language-specific nodes directly below the website root. Look at the Geometrixx example site, where there is content/geometrixx/en, content/geometrixx/de, content/geometrixx/fr, etc.
Feike Visser has a short blog post on a translation tool. In a typical local development environment, the tool is at http://localhost:4502/libs/cq/i18n/translator.html.