Refinery generates its navigation menu in the _menu and _menu_branch helpers. I want to keep the provided logic since it allows a user to create a new page. However, let's say I have a model Product and I want to insert a link to the show action of Product in the navigation menu. What's the proper Refinery way to do that?
I found the easiest way to do it is create the page in the pages dashboard, and in advanced setting you just fill the redirect to /products/awesome or whatever the product slug or id is.
You can see how I did it on: http://tigrepictures.com/
Related
I am new to IBM Watson Explorer's Application Builder component.
I able to create some widgets and place them on a page, but I am not able to figure out how to use the global search bar in the page header.
I want to search for something using the global search and the data in the widgets on the page should be updated.
Tried reading the knowledge center docs, but not able to get much info.
For making use of the global search, you may want to understand, where the data for that resides.
The Watson Explorer Engine is where you ingest your documents by creating a search collection and by adding them as seeds and then once that is all set up and you are able to see your data there, you can now switch over to the AppBuilder.
Link (Creating a search collection): https://www.ibm.com/support/knowledgecenter/en/SS8NLW_9.0.0/com.ibm.swg.im.infosphere.dataexpl.engine.tut.auth.doc/t_vse-auth-tut-create-display.html
Tabs on admin page of AppBuilder look like this: Image Link: AppBuilder tab header
Once on AppBuilder admin dashboard, you might want to create a new entity by going to the entity tab, located at the top of the page.
Then you can name it whatever you like and from the dropdown select the collection name you had created on Watson Explorer Engine, toggle the searchable button on in the entity page and once done click on save at the bottom of the page.
Link (adding backend and entity creation): https://www.ibm.com/support/knowledgecenter/en/SS8NLW_9.0.0/com.ibm.swg.im.infosphere.dataexpl.appbuilder.doc/c_de-ab-devapp-tutorial-integrate.html
Then you may want to head over to the layouts tab and then go to the search page there, then drag the search results widget to the pane below and save it.
Layout tab - search page, looks like this: Image Link: Layout tab - search page
Layout tab - search result widget on search page, looks like this: Image Link: Search result Widget
Finally after all this, when you search for the document from the search page "/AppBuilder/search", it should show up there.
Tutorial WEX AppBuilder Resource: https://www.ibm.com/support/knowledgecenter/en/SS8NLW_9.0.0/com.ibm.swg.im.infosphere.dataexpl.appbuilder.doc/c_de-ab-devapp-tutorial.html
Hope this helps.
I am using Joomla 3.3 and have a lot of articles. My goal is to make it so the URL for an article is,
www.mysite.com/menu-item/article
However, right now when you click on an article it goes to
www.mysite.com/(id)-article
and takes you to the main page instead of staying on the menu item page. I'd like the page to stay on the menu item's page as I have page specific modules.
I'd like some explicit help as the answers when I Google are rather unclear.
You need to create a menu item for your article, as that will be used to create the url.
…and takes you to the main page instead of staying on the menu item
page. I'd like the page to stay on the menu item's page as I have page
specific modules.
No, it doesn't take you to the main page (you can check that by looking at the URL in your browser) but because Joomla modules are assigned according to menu item IDs when there is no menu item Joomla uses the settings of the default page, your homepage, so you get the same modules as appear on the homepage.
The solution to both these problems is to create a menu item for the article (or at least to its parent category to fix module assignment).
There's a detailed description of the issues and how to deal with them in How to control module display when linking to an article with no menu item.
I cannot seem to figure out how to add my preexisting pages to the auto navigation menu that Piranha generates when I call #UI.Menu().
Currently, I am using the method described here under Getting the Models to pull CMS content and display it above my model data. I can successfully render the page with Piranha content, but I'm not sure how I can have this page display in the top navigation.
Alternatively, I can pull my data and display the CMS content by creating a new page type, but this means the page type is only ever used to display this single page. It shows up in the navigation generated by #UI.Menu(), but if I continue using this method, I would need to create an additional piranha controller for every Action.
My main objective is adding CMS functionality to my custom MVC project and have everything display in an automatically generated navigation with #UI.Menu().
If you want to add pages in the menu that aren't really controlled by the CMS add a single page type for them, for example "Application Page". Then check the documentation for page types under section 2.5 here http://piranhacms.org/docs/pages/page-types.
If you check the checkbox to allow pages to change the route you can specify the route on each page of this page type. This means you can add your application pages into the structure and the add the route to your controller/action.
I develop a symfony 1.4 project,my issue with admin panel in backend,so I use the administration generator to do it.
I have a list of members generated automatically in backend,now Im hopping to add some custom action when a memeber edit her profile in backend,then I wish to add in edit page radio dial buttons give simple “Yes” or “No” Options. By default, the radial dial button is set to “No.” However, if the admin selects “Yes” then a popup window will come with the following text: “Are you sure you want to sell a new membership" and If the admin selects “Yes” and then saves the profile, a pop Window will need to display that reads: “New Membership sold"...
the problem is I can't change code because the form of edition page is generated using a plugin (sfguarduser) so It's deficult to make any changes?
Any Idea?
As the plugin documentation says, you can override the plugin module by creating a module with the same name in the application you want and by adding a require_once in the action.
As for your confirm and other javascript, you can override the generated partials by adding partials with the same name in your module, just as described here.
I'm building a simple Grails app for a web development class. For the most part, the app is finished, but I'm having one sticking issue.
On the index page, I have a series of buttons that correspond to the List, Create, and other templates that are built in Grails via scaffolding. How can I dynamically pass on the correct path to the controller action?
In order to do this, I need to get the current page URL and add the proper location. Is that possible to do in Grails or should I stick with jquery or some other ajax solution?
What are you trying to achieve here,
If you want to generate link to controller actions that you can use for button href, you can do it like this,
<button href="${createLink(controller:'foo', action:'bar')}"/>
See the createLink tag
If you want to know controller and action name, ${controllerName} and ${actionName} can be used.
Can you use ${controllerName} to get the name of the current controller?
An alternative might be ${params.controller}, but again, not 100% sure it works in gsps