Croogo Translate and Menu plugins - plugins

everybody.
I use CakePHP in all my projects for years, but it's my first time using Croogo.
I have two problems here (both related to Translate plugin) and I'll really appreciate any help.
First, I added the Contacts plugin to the Translate bootstrap configuration, as indicated in http://wiki.croogo.org/1.4/developers/core-plugins/translate (I'm using Croogo 1.5, but unfortunately there is no wiki documentation for this version yet), in order to translate the Contact forms. I've created two contact forms in my system: one called Contact (alias contact), and it's linked to a Menu plugin link using the Link address: /plugin:contacts/controller:contacts/action:view/contactand the other one is called Work With Us (alias work-with-us), and it's linked to a Menu plugin link using the link address: /plugin:contacts/controller:contacts/action:view/work-with-us
The problem is when I access my system using a locale url indication, say http://localhost/por, the Menu link for Contact is http://localhost/por/contact what is good, but the Menu link for the another contact form is http://localhost/contacts/contacts/view/work-with-us/locale:por what is not good, since when the user clicks on this link the whole website turns to another language, because the URL is not formatted as expected.
Second problem: I created a plugin called Orders. And I added one controller's action to the Menu plugin link as: plugin:orders/controller:orders/action:add but, again, when I access the system, say http://localhost/por, the link for the "Add order" is not formatted properly: http://localhost/orders/orders/add/locale:por
I would really appreciate any help. Probably, I'm doing something wrong.
Thanks!

I found a solution (although I didn't like it). I used the router configuration to get a root url address:
// Work with us
CroogoRouter::connect('/work-with-us', array(
'plugin' => 'contacts', 'controller' => 'contacts', 'action' => 'view', 'work-with-us'
));
The, the Menu plugin link put the locale indicator in the right place.
Thanks, anyways!

Related

DNN Extensions fail to load DNN 7.4.2

My first DNN site. Please go easy.
I'm trying to load some extensions (Blog & a PayPal extension).
While the admin console show's they're installed I can't see them or start them. They are not evident on any of the menus.
The theme creators say its not their problem.
Any suggestions for a Newby on how to get the extensions working?
thanks
You actually need to go to the page where you want a module to live and then use the Modules admin menu entry to Add New Module to the page. Click the menu entry, and you can drag and drop a module onto the page.
Yes.
They're listed and "In Use" is recorded OS "No"
OK - here's a screenshot of the Admin Page in Edit Mode whilst loggedon as a Super User after an Extension Module has been added to the page.
As you can see:
The extensions are not showing
Instead the area on the page shows 'Banner Options' even though no banners were inserted.
You are on the Admin page, and it certainly looks like you have added two modules to the bottom of the page. One of them seems to be the Banners module, as the screenshot shows that mousing over the edit pencil icon shows the Banner Options.
My guess is that this isn't close to what you want to do.
I think that what you want to do is to add a module or modules to some other pages.
So, go to the page to which you want to add a module. Then, click or mouseover the Modules menu item in the admin menu. Select a module and add it to the page.
Does that make more sense?

URI for client side version

Currently my system works on abcd.appspot.com, it has two buttons, one Home and other About us, clicking on each button displaying respective UI.
Requirement now is, if user writes abcd.appspot.com/home then it should display the 'home' page and abcd.appspot.com/about should display 'about us' page. I know if I chose the history token then it will be much more easier for me, but requirement is the it must be abcd.appspot.com/{menu_id}/... only.
In short, I want the REST URI for client side version. Any idea how it should be implemented in GWT? May be I am missing some simple clue.
Fragment-identifier # is mandatory, if it is not present the page will reload...
You can remove the # using the HTML 5 feature "pushState", I known the last version of errai can do this, see http://docs.jboss.org/errai/3.1.0-SNAPSHOT/errai/reference/html_single/#_pushstate_functionality, but this will work only with HTML5 compatible navigator...
A few others links about gwt and pushstate:
https://github.com/jbarop/gwt-pushstate
https://gist.github.com/tbroyer/1883821

TYPO3 does not resolve url correctly

I'm pretty new to TYPO3 and currently stuck with the following issue:
I copied the templates from another webpage that is currently in business.
When I'm on the startpage of my homepage (www.domain.com) and click on one of the links it contains I always get an error 404. The link that is generated looks like this.
http://www.domain.com/testpage.440.0.html
So I guess something like RealUrl was in use on the webpage that I copied from? Do I understand this right? I don't see that RealUrl is installed though.
However If i manually change this link to
http://www.domain.com/?id=440.0.html
the site is being created.
How does Typo3 know to generate a page when it receives the first version of these two links?
Does not really look like a standard out-of-the-box REAL URL url. That would rather have been /testpage-404.html . So maybe the problem is somewhere else, could be:
simulate static (check if that extension is running). A common mistake is to run real url an simulate static at the same time. If you do not need speaking urls for the moment, just uninstall simulate static.
make sure you add a domain to your shortcut. Use the the list modul and select the root shortcut. Then click create new record, select domain. and enter your domain there. Flush all the caches and try again.
If you'd post your TS Code (of the root shortcut page) here, I could probably tell what's going wrong.
real url configuration typically use .htaccess files.. maybe that file still contains information from the original destination.
check if the root ts contains some baseUrl statement
Which version of TYPO3 are you using?
HTH, but feel free to post more infos.
If your typoscript template is expecting to find realurl and its not installed as a plugin, that could be the cause. You'll need to either install it, or find the settings in the TS template and remove them.
Try the template object browser to look for it (use the template tool, click to the site root, then use the drop down menu in the r/h pane to choose the Template Obect Browser.)
How does Typo3 know to generate a page when
it receives the first version of these two links?
Any page request that it doesn't understand will give a 404 error.

can't change options of a select element in a drupal web form

Im new to drupal. I had created web form with few elements and two select boxes. All went well. that was last week.
Now, I want to change the values, and strangely I can't see list of Values anywhere in the form component page. I can't even see how to create a new selectbox and give new options.
I think I kill some module responsible for this. Im not sure.
FCKEditor is installed, if that helps.
screenshot: http://twitpic.com/2sqytr
If you go to the node, you should see a Webform tab, if you click that you should go to the overview of the webform form, where you can edit existing form fields and add new ones.

Custom template support for Joomla

Joomla is pretty good CMS but, is there any way to create custom template which will be joomla supportable ?
If I understand your question you want to convert an existing template that isn't even a Joomla template. If that is the case I found it very hard to do, of course depending on where the template was coming from. I ended up taking a template for Joomla 1.5 and starting from that. (Although the ja_Purity is a messy one when it comes to the CSS, looking back I would should have started with another one....)
Yes, you can do it. Copy default template which comes with Joomla and customize it, and you can install it now.
Refer : http://docs.joomla.org/Joomla!_1.5_Template_Tutorials_Project
Follow the SiteGround tutorial.
1st result for Google: joomla change template.
If you mean a page-specific template, then this is answered here: http://docs.joomla.org/How_do_you_assign_a_template_to_a_specific_page%3F
It describes the following steps:
In Joomla! there is a default
template, but you can assign other
templates to specific "pages" that are
defined by menu links.
To assign a template to a page, you
must first make sure that there is a
direct menu link to the page.
Go to Extensions>>Template Manager
Select the Template and click the edit icon (or click the template name)
In the left column, change "None" to "Select from List."
Select the links you want to apply the template to.
Save
Note that you cannot assign the
default template to individual pages.