Joomla custom component query string to SEF URL building - joomla3.0

I want am developing a component for joomla 3+.
I am using database to get the categories in the menu and manually creating the link like mentioned below.
// Creating the manual link
$linkThingsToDo = JRoute::_('index.php?option=com_mycom&view=city&layout=thingstodo&cid[]='.$cityID.'&cat_id[]='.$value->catid);
Here I am using the "cid[]" for City ID and cat_id[] for Category ID and I am getting the link in address bar like this:
joomla/index.php/city-guide-3/city/thingstodo?cid[0]=2&cat_id[0]=4
While I want "joomla/index.php/city-guide-3/city_name_here/category_name_here"
"joomla/index.php/city-guide-3/Dubai/Chocolate"
using localhost for the testing.
What should I do to achieve the above SEF URL

Related

my react firebase custom domain title and description doesnt change

I have my react website hosted on firebase with custom domain, the domain is added to google search console/google webmaster, the problem is the title and description of website does not change when i search my website on google.com.it keeps showing old title and description.i have tried react helmet, react meta tags, browser clear history, even tried with simple html file deployment, the title and description does not change.Thanks for helping.
It looks like you'll need to ask google to recrawl the website if you would like it changed quicker than it would take google to revist the site organically. There are details on how to do this here: https://developers.google.com/search/docs/advanced/crawling/ask-google-to-recrawl
Ultimately you'll need to Inspect the URL using the URL Inspection tool. Details on how to do this are in the link above.

Allow users to add modules to a page using react components

I am trying to build a tool that would essentially work as a "web page builder" where a user can click to add a module, select from a list of options and then have those modules injected/added/appended to the page in a specific order.
Paperbits(https://demo.paperbits.io/) is the best example of what I am trying to accomplish. when the user selects a module it is added where the selected the plus button and can be edited from there.
I am using react.
You can assign an ID to each module. When you select a module(component), you can push that ID to an array. You can then use that array to map and render the module based on the ID.

How to create a portal which can realtime preview widgets and generate widget embeddable link using React

I am trying to build a portal to create widgets. This portal will allow users to create different types widgets and preview how that widget look like in realtime.
Finally, this portal should be able to generate a unique link for a particular widget which has the capability of rendering the same widget configured by the user in anywhere when they pasted it (ex: like an online article).
For you reference I am attaching a design of my preview page.(https://drive.google.com/open?id=1lP3h5YYExrPWOcAaRmf2YupZ6qjqrINH)
Please help me to find the best way to implement this by using React.
You can use redux and store the widget preview config (widget name, layout, color, ...)
So your preview render will base on the stored widget conf
Your side parts will update the stored config
All your update will rerender the widget preview with the new config
I think I have to create a separate library project to do the widget rendering part. So the embeddable link always will be pointing to that script. When some one copy that link and paste that to somewhere basically it will create and iframe to render the widget. So the same way we can do the widget preview part as well.
Any suggestions?

Add a 'Title' to the new OneNote page created using LogicApps connector?

I am trying to use Logic Apps to create a new page in my OneNote book whenever a new email comes from some particular DL. Now my query is how do I name my new page automatically as the OneNote connector in LogicApps doesn't provide that option?
I have tried changing the logic app json code but not able to find the correct logic where it needs to be changed.
The Page Content is just HTML. You basically need to set the head > title for the title of the page.

Lightning experience deep link to custom Visualforce tab

Do you know if it is possible to deep link a custom tab on the left hand navigation?
In my web app I allow the user to login through SSO from Salesforce ( so I use salesforce as authentication provider ), than when the user credentials are ensured i redirect the user to the tab using an aspex url like the following:
https://{domain}/apex/{VisualforceTabsName}?sfdc.tabName={VisualforceTabsRef}
or a servlet integration link like the following:
https://na15.salesforce.com/servlet/servlet.Integration?lid={lid}&ic=1&linkToken={linkToken}
I got those links simply right clicking the tabs and copy the link, now this is not going to work on the new ligthening experience where the link is something like the following;
https://gs0.lightning.force.com/one/one.app?source=aloha#{token}
Now it seems to me that the token in this case is user specific, so it can't be used as high level reference to the Visualforce tab.
Do you know if there is a way to do the same in the Lightening Experience (Spring 16' release)? Or if there is a different way to achieve the same result?
Thanks
In Lightning Experience, you can reference custom tabs using the developer name of the tab (note that this is the API name of the tab containing the Visualforce page, not of the page itself). This URL should work:
{domain}/lightning/n/{tabName}
This assumes that you have already created a tab for your Visualforce page.

Resources