Where can I find (Path in the bundle) the User create/edit screen source? - liferay

I am just trying to find the front end source code for user creation and edit pages. But I tried search by different label text and ID's but no use. Can anyone please tell me the path for user add and edit page source files.

As you can see, the URL is something like:
http://localhost:8080/group/control_panel/manage?p_p_id=125&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&refererPlid=15595&_125_redirect=%2Fgroup%2Fcontrol_panel%3FrefererPlid%3D15595&_125_struts_action=%2Fusers_admin%2Fedit_user
Searching in struts configurations you can see that struts_action=/users_admin/edit_user should refer to jsp file edit_user.jsp
That file is located in users_admin... so the path you are seeking should be html/portlet/users_admin inside portal-web project.
This is on GitHub.

Related

Hyperlink in Task Dialog footer to CHM? [duplicate]

I have created a .CHM file and then when I open it in c# I get the First topic. I want to open it to a specified topic.
This is the code I use right now to open it.
Help.ShowHelp(this, "./Resources/ServerHelp.chm");
I want to be able to open it to a specific topic like Audio. I tried using
Help.ShowHelp(this, "./Resources/ServerHelp.chm", HelpNavigator.Topic, "Audio");
and it showed me page not found. Can i get some Help with my Help please !! :P
This can be achieved by the following steps:
Identify what names the chm uses to refer the internal topics. This is done by
Open the CHM file, and right click in the topic page and select Properties.
The property called: Address (URL) Contains the topic page name at its end.
Here is an example:
mk:#MSITStore:C:\Program%20Files\Silsila%2011\Silsila.chm::/Audio.htm
Here the topic page name is "Audio.htm"
Call the Help.ShowHelp() function with the correct parameters as shown below
Help.ShowHelp(this, "./Resources/Silsila.chm", HelpNavigator.Topic, "Audio.htm");
That should do it. you can fine the topic name of the pages you want using Step 1, and then use Step 2 to open the help file on that page.
The same also works to create a windows shortcut opening a specific page. Use that as "target" command line :
C:\Windows\hh.exe ms-its:[file_name.chm]::[page_name.htm]
If you do not know [page_name]: from the chm help viewer, try to print the target page on a virtual printer like PdfCreator. The output filename automaticaly generated will probably contain [page_mane].
With thanks to sazr for the intial syntax !

.htacces folder name with same file name?

I have a file in my webpage called news.
I did not write .html the end of the file, is this still correct? (the browser shows like html)
I want to make a folder in my server with the same name and put the articles there.
For example:
www.example.com/news ->>> this shows the main news page
www.example.com/news/article0101 --> this shows the article
If a user type www.example.com/news or www.example.com/news/ both must show the main news page.
In my webserver, I made all files without any extension.
I have read previous Q/A -s from this page and other pages and I have did not found a valid soulution to my problem?
Can I even modify the .htacces file in this way? Or I approach the problem in the wrong way?
Do I require a database or I just need files if I want to write articles?
Where can I find standard documentation for a webpage with articles and news?
Thanks very much your help

How to get shareable links for edit and view on the subfolder in Google drive?

I am in the situation, where I want to provide a link (obtained via Share option) to view all the project (i.e. folder structure with files inside). This is working without any problem. Now, I want to also provide a link to edit the particular subfolder. Again, I got link and through it I can edit files inside the subfolder. But the problem is that if I use 1st link (the view one) I am able to edit the subfolder even though I do not have permissions to do that (I suppose permissions are given by the 2nd link).
root folder (view link)
subfolder 1 (edit link; can edit with the view link)
file 1
file 2
subfolder 2
file 3
file 4
Is it a feature or I am doing something wrong?
Thank you,
Jirka
I think you want to use the "Share..." pop-up menu option, not the "Get sharable link" option; on the next dialog click on "advanced":
So I have found an answer here https://productforums.google.com/forum/#!topic/docs/fpxbFbxj2SQ.
According to that post it is not possible to have multiple share links with different permissions. The only option is to use email addresses.

OpenCart - finding files

I am relatively new to OpenCart and need help locating the right files on Cpanel to customize site, most especially the home page. How do I locate a file name using Google Chrome Inspect element on storefront and then find the same file on my Cpanel File Manager? I am most especially looking for the html file on file manager for the home page. I would appreciate any advice.
Let me tell you the correct way.
Lets say your store URL is
http://demo.opencart.com/index.php?route=common/home
There are two parameters after route. They are
1st is folder
2nd is file
3rd is function
Since we know that this is the front end, so we will go in catalog folder in root. If you have to find the file in admin panel, you will check inside admin folder in root.
So http://demo.opencart.com/index.php?route=common/home is basically CATALOG FOLDER / common folder / home.php / function index().
If we have to search something in admin lets say http://demo.opencart.com/admin/index.php?route=catalog/category/add&token=43d61e31aa46a1e66b4bfe63181ebe85 so it is basically ADMIN FOLDER / catalog folder / category.php / function add().
Now if you go through the function, there will be a line at the end something like this.
$this->response->setOutput($this->load->view('common/dashboard.tpl', $data));
This is your tpl file. Go inside the views folder, templates, common, dashboard tpl. This is your desired file.
I know this is an old question, but sometimes it's harder to find what you are looking for in OpenCart.
I have been searching for someting for more than an hour. As it turns out, what I was looking for (PHP CODE), was written in DataBase for whatever reason in this oc_modification table as an XML-ish text.
So if you are having trouble finding some file, it actually might not be a file at all. Actual code snippet could be in DB.
I use opencart 3.x.
Easiest way to find something is by downloading whole project, opening it in notepad++ and using "Find in Files" tab. If you can't find it there, there is a big chance you find it in DB.
Open PhpMyadmin, go to current database for your project, press SEARCH button on top, put wildcard like '%YOURTEXT%', make sure to select "ALL TABLES" and click GO.

Chamilo - Search bar into footer

I have a problem with Chamilo 1.9.8. I want to add Google Search bar to a website into the footer, but I don't know which file I have to edit to insert the code, and where that file is situated.
I have never worked with this system, so I am new in this category, please can you help me?
If it's just a matter of updating the footer, you can find it in 1.9.8 in main/template/default/layout/footer.tpl
Note that, for these changes to take effect, you'll have to delete the template caching in archive/twig/ (just delete the contents of that folder) or click the "Archive directory cleanup" link on your Chamilo administration panel.
You can also find useful tips about modifying the templates in the (unfinished) developers documentation here: https://github.com/chamilo/docs/tree/master/1.9/en/developer.
Note that:
you should update to 1.9.10.2 to avoid security flaws
1.9.10 has a way for you to create a copy of the "default" template and configure it in your configuration file (search main/install/configuration.dist.php for $_configuration['default_template']

Resources