In Joomla 3.03 I have built a component and a form view for adding to and editing records. I want to load this form into another entirely separate view where we are writing out the records.
I know I can use jQuery.load() to pull in the form but how can I dynamically load it into place on the separate view and allow it to be completed/validated/posted as if you were on the orginal form view page?
You can use new feature of Joomla 3.0 JLayout, it enables view reuse inside or accross extensions. For more details, check in docs Sharing layouts across views or extensions with JLayout
Related
I am using Drupal 7.54. I want to attach or embed a node add form to a view so that when a user submits the form, the view below the form will be updated in realtime via ajax. The form will be shown above the view. My view block name is Statuses Stream.
I tried Form block module and putting the form in the header section of my view using views ui, but after submit, it was redirecting to the node created page.
Then I tried Advanced Form Block module. I created a form using AFB module. The form name is Statuses. It is submitting the form with ajax, but it is not updating the view in the realtime. I have to refresh the page manually to show the created node below the form.
I am open to any solution programmatically or through a module.
Note: For those who know, I am trying to mimic the statuses module. It does exactly what I am looking for. The problem began when I came to know that it is not an entity. So now I am trying to make the same functionality with Content type.
You could use something like Views Refresh to manually update the view below instead of refreshing the page.
How can i edit layout of individual pages in Oracle Apex. I tried changing templates and properties in shared components but it applies to all the pages.
On one page, I need different layout of buttons and items and on the other page, a different.
You can create more than one page template, for different types of page. And you can also make page-specific styling changes using in-line CSS in the page attributes.
It applies to all pages, because all of your pages refer one template. And when you change this template, all pages changes. Create a copy of template, and then refer your individual page to this new template.
I have developed a Joomla module that does provides a form, processes its post data, does some calculations and displays the results.
The module includes a button to print the results. I'm currently using JavaScript to open a new window, paste the relevant HTML and open the print dialog.
Instead of JavaScript I would prefer to provide a separate URL for the print view and simply open that in a _blank target. This would make the application work better for people using screen readers or not having JavaScript available.
Is there any way that I can tell Joomla to not render the template along with my module? I was thinking that creating a component fixes that issue, but had to find that components are rendered into the template, too...
BTW: I have Joomla 1.5.22
To achieve what you want you have to add additional tmpl=component query string parameter to the request URL. This will disable template and module rendering.
Your URL will look something like this: index.php?option=com_xxx&view=xxx&tmpl=component
Since you are using Joomla 1.5 you can request index2.php?option=com_xxx&view=xxx and it will only render the component. Joomla 2.5 does not have index2.php so if you plan to migrate in future, don't use this option.
If you are using SEF then adding ?tmpl=component at the end on URL does the trick.
To go a step deeper... in your template directory you have component.php file, that is the file that's being loaded by tmpl param. You can copy component.php to my_component.php, do necessary changes and load your custom component template with index.php?option=com_xxx&view=xxx&tmpl=my_component
The joomla way of doing it would be to set your output to "raw", see this tut:
http://www.katcode.com/displaying-raw-output-in-joomla-by-setting-format-in-the-component/
I'm trying to build my first page using asp.net mvc3/razor which will mix pages showing entities like a list of news items and pages loaded from database created from a wysiwyg form (=content management page, cm). Therefore I would like all cm pages to use the same controller/view.
One "ugly" way to solve it is using a Pages action on each controller but I rather have a way to lookup if the link is an action or should be loaded from DB. Can I create routes like that? And if I can should I or is there a better solution?
For example if I have this structure
Home (Controller)
News (Action, page built up dynamically using list of news items)
About (Action, page from db)
Contact (Action, page from db)
Calendar (Action, page built up dynamically using a list of calendar events)
Orienteering (controller)
What is orienteering (Action, page from db)
I would like the url to the About page to be /Home/About not Home/Pages/About and the What is orienteering to be Orienteering/What-is-orienteering. These two pages are created from a wysiwyg editor in the gui by the users.
The News and Calendar should be loaded like standard controller/view page.
The bottomline is that I would like a base set of dynamic pages displaying structured data and on top of that the users should be able to create new pages from that GUI that is not controllers/view but loaded directly from the database.
I could create a Pages controller but then the URLs won't mirror the menu the user is seeing.
What is best practise in this case? :)
I am using MVC3 Razor for my project. I am new to this technology.
I need to create a user control. When i am trying to add a new item it is giving me the options like
MVC3 partial page(Razor)
MVC3 View usercontrol(Aspx)
Web User Control
Which one i should select? and which folder it should be placed? in Shared folder or some other folder?
You should select MVC 3 partial page (Razor). You should just be aware that the Razor view engine does not support user controls in the way that WebForms does.
You can place it in the Shared folder if it can be used from multiple different controllers. If not, you should place it in the controller-specific views folder.