I am new to modx. I am using MIGX to create some CMP. I gave the menu tab name as migx.hello and in core->compontents->migx->lexicon->en->default.inc.php I added a label
$_lang['migx.hello'] = 'Hello World';
But the when I load the page page, its showing migx.hello and not showing the value. Can someone help me in this.
Always clear cache after after changes in lexicon.
Never change the lexicon in files, use "Lexicon Management" instead.
Related
I am not using any plugin i want to make bootstrap admin dashboard on word press admin.
how i can change Word press welcome message ?
how i can change word press screen option ?
You can turn the welcome panel off, incidentally resulting in the removal of the welcome message, by doing the following:
Locate the file: /wp-admin/index.php
Just before wp_dashboard() is called, add the following line:
<?php remove_action( 'welcome_panel', 'wp_welcome_panel' ); ?>
This will also remove the corresponding screen option.
As far as changing the text from "Welcome Text" to "Some Other Welcome Message", this is not set in any php file. You will need to have access to the MySql database. You will likely find the welcome text in the wp_options table. A simple SQL query will help you to find the exact location.
References:
Welcome Panel:
https://codex.wordpress.org/Plugin_API/Action_Reference/welcome_panel
Database Diagram:
https://codex.wordpress.org/images/2/2a/WP3.9.4-ERD.png
I am working on http://softprodigy.in/kalani site made in drupal 7 using omega theme. i am facing one major problem on some pages,for example on this page http://softprodigy.in/kalani/guest-information, under content region there is block of social sharing links that are displayed in block,i want to change the region but whenever i changed the region content goes somewhere and div displays empty with no content.I don't know whats the problem.If anyone knows any solution please share it with me.
Thanks in advance
The blocks that contain hidden images look like they have been added manually. So, you need to change the input mode for the block content.
The best way is to use PHP code; Go to your modules page and enable PHP filter module.
The in the block configuration page type something like inside the block content textarea:
global $base_path;
print "<img src='<?php print $base_path ?>sites/default/files/image.jpg' />";
OR
print theme("image", array("path" => "sites/default/files/image.jpg"));
Hope this helps.
I'm going crazy with this one. I am trying to change a little bit the pagination style and layout in Joomla. So, I found this file: libraries\joomla\html\pagination.php but I know that pagination is overridden by this file: templates\gk_yourshop\html\pagination.php. Yet, if I modify something in gk_yourshop\html\pagination.php, I can't see the change in the pages. Does joomla cache templates and I have to re-load them (like phpBB)?. I don't understand.
I tried to check if writePagesLinks is called from joomla\html\pagination.php with this:
function getPagesLinks()
{
echo "test";
global $mainframe;
and I can't see the message. I also did this in the other pagination.php file and it's just like I can delete them and it doesn't matter. Can you help me? Thanks!
Looks like I changed it here some time ago:
\libraries\joomla\html\pagination.php
But, that is system file, so i just make a "hotfix" of it.
In Joomla 3.x you can create pagination override from Extensions > Templates > Default Template > Create Overrides > Layouts > Pagination.
The override files are created in "Default Template" "html\layouts\joomla\pagination" folder.
You can edit the override files as per your needs.
Where are you getting WritePageLinks from? That's not one of the supported methods.
http://docs.joomla.org/Understanding_Output_Overrides#Pagination_Links_Overrides
There are four functions that can be used:
pagination_list_footer
This function is responsible for showing the select list for the
number of items to display per page.
pagination_list_render
This function is responsible for showing the list of page number links
as well at the Start, End, Previous and Next links.
pagination_item_active
This function displays the links to other page numbers other than the
"current" page.
pagination_item_inactive
This function displays the current page number, usually not
hyperlinked.
[edit]
You may also want to look at Protostar as an example.
I want to add a new tab to the navigation of profile page. I hope to do this by using moodle block or module. Please give me a clue to do this.
You have to hack the code in /user/tabs.php (Moodle 1.9).
Just add a new element to the $toprow array:
$toprow[] = new tabobject('extra', 'http://a_link', 'Extra');
Where I'm specifying an id, a link and a label for the new tab. Obviously, you have to add the code to manage the content of the tab (possibly using $filterselect). In the above file, this is done for all other tabs, so just use that as a template.
For the parameters of the tabobject constructor, refer to /htdocs/lib/weblib.php.
The truth is in the code.
$viewName = 'my_view_name';
print views_embed_view($viewName);
we have such a cool views_embed_view func. in Drupal to display a view inside another template. But It doesn't get the custom "Display Output" :/ it gets the default.
How can I assign my custom Display Output (under Theme: Information) to views_embed_view?
Appreciate helps! thanks a lot!
[UPDATED]
I try as below, but still not taking the custom display
alt text http://files.droplr.com.s3.amazonaws.com/files/15306373/1hKd8R.view.jpg
$view = views_get_view('my_view_name');
$view->set_display('page_2'); // See gotcha below
$view->set_arguments($user->uid); // Set arguments
$view->pre_execute(array($user->uid)); // Set arguments for pre exicute
print $view->display_handler->preview();
$view->post_execute();
The gotcha is that page_2 is not the name of your display it is the views internal name, you can work this out by looking at the theme informaiton for the display you want in views admin.
You can just use
<?php print views_embed_view('my_view_name', 'block_1') ?>