I want to show advanced search page which includes PHP, HTML and CSS code. Its work is to get User inputs and process/execute a query to get results from Oracle DB. There are multiple PHP files which are linked to each other and index.php is root point. All custom files are in a folder named "prod". So the problem is I want to redirect to index.php after User login in Typo3 9 LTS CMS. But do not know how to achieve this. Please help me what is the best and easy way to do this in Typo3 9 LTS version. Is there any extension which can help me. And which files I have to configure to achieve this. I am using Fluid template extension.
As this are individual PHP scripts unrelated to TYPO3 you can consider them external pages to TYPO3. if you want to have a link inside of your installation to that pages use a page with type Link to External URL. After FE-login you can forward to this TYPO3 page, which redirects to the external URL.
Be aware that the external script (your script) has no login validation from TYPO3 and that the URL, once known, can be called without a login.
Related
I manage a website which is based on Drupal CMS. I have FTP access and I want to modify the structure of the header.
I know that the header is loaded from separated php file but I don't know what is the path to the file and how to find it in FTP.
Is there any way in Chrome dev tools to find the path to the file and is there a general way to find the files from which some part is loaded?
Check under "Appearance" from admin menu what theme is used and download whole theme over FTP. Themes should be in sites/all/themes dir. Then search the theme files and change what you need.
I don't think that browser can be aware of theme structure since it receives the whole pages and it can not know how page html is built on server side. There is an drupal module called Theme developer which can help you with that:
https://www.drupal.org/project/devel_themer
Unfortunately it exists only for Drupal 6 & Drupal 7 - not sure what version of drupal uses your site.
I have developed a joomla extension and want to load a php file within my extension directory onto joomla's back-end (Admin page).
For developing the extension, I have followed the developer document of joomla and install it on an instance of joomla. It located at administrator\components\com_myextension as the picture below:
Note: The root folder of joomla is jStore
For my intention, to achieve the result I have to define the behavior in xml file so that myextension.php file can be included whenever admin page viewed or to write a function to include myextension.php file when my extension installed. Neither way I don't know how to do that yet!
In conclusion, what I want to achieve is to load the file myextension.php whenever joomla's admin page loaded. And this must be automatically.
Regards,
Dung Tri
I have figured out a new way to run a php script after my plugin activated.
The way is to develop a system plugin for Joomla. The system plugin support some functions that can automatically run when admin page is viewed like: onAfterInitialise, onAfterRoute, onAfterDispatch, onBeforeRender.
You can see a tutorial at docs.joomla.org/J3.x:Creating_a ... for_Joomla and download sample project at github.com/joomla/joomla-cms-examples
I have site build in Magento 1.7
I have installed a new shipping module Bpost through magento connect. When I installed that, it raised the error that, it is already existing plugin. After that when I accessed the site, the maintenance flag was active.
When I removed the maintenance flag and checked the site, everything seems to be working fine in the front-end. But I am not able to add or edit contents from the back-end. Click is not detecting in the existing lists of contents and when I click on add new (for cms block, page etc) the new section appears, but no action is performed while clicking save.
Why is this happening ? How can I resolve this issue ?
I recreated the site with my backup files to a new location. After that removed all the existing plugins and installed all the plugins. At that time all seems to be working fine. After that I have edited the header.phtml file and added some additional script.
The script was for getting contents and displaying it using script. After that when I run the site and went to backend everything again went to non editable mode. Now I am not able to click or edit any cms contents in the site of static blocks, products etc.
Why is this happening ? How can I resolve this issue ?
In my opinion, the problem comes from a javascript with an error that blocks the rest of the javascript. All buttons use javascript to fire events. With firebug or something similar, check which error is raised in the admin javascript and try to fix it. Using the solution that Niraj Jani gave about disabling module is a good way to check if it is really the module that blocks the javascript. If the problem is linked with prototype, it can come from the definition of blocks in php, the design template or layout...
Have you tried after claering cache?
Take Look at below link and its answer,
In Magento after installing extension Admin panel in unable to load
Delete (or move to another folder) files in /var/www/var/cache
Delete (or move to another folder) files in /tmp
From a shell, run
/var/www/shell$ php indexer.php --reindexall
You've just manually cleared your caches and re indexed your data. See if your system comes back to life.
I have been develope one site in joomla framework. Now my trouble is that client want one custom page in this site. so, please guide me how to i setup theme interface in this custom page?
Although this is not my favorite solution, instead of including Joomla in your script, you can put your script inside an article with an extension that can read your code, like DirectPHP and others.
You can make something like error.php which is really a mini application that renders a single page. You can see in the core how elements of the emplae are used and you can evn pull in modules and so on.
I am currently developing php scripts, But At some point I wanted to connect to drupal database with my php scripts, I google about accessing drupal api with external php scripts, as many people suggested use bootstrap.inc file in your external php script, I like to ask here, lets say if I added this bootstrap.inc file and related code after that can i get access to use drupal api with its database?
I wanted to register a user with drupal database and also need to read some tables from drupal database, So can i achieved all this? including bootstrap.inc is enough or need to add any other module from drupal side, i external php script get access to drupal database?
Thanks.
If you still want to work outside Drupal, in a standalone script, you should include Drupal's include/bootstrap.inc and call drupal_bootstrap() function to initialize Drupal environment (connect to database, load modules, session, etc.). You can select the phase to bootstrap depending on what you need from Drupal.
define('DRUPAL_ROOT', 'YOUR DRUPAL ROOT');
require_once('includes/bootstrap.inc');
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
// Drupal is fully loaded here, you can access everything.
information source: https://drupal.stackexchange.com/a/24117
drupal information: http://api.drupal.org/api/drupal/includes!bootstrap.inc/function/drupal_bootstrap/7