Questions tagged [view]

Use this tag for questions relating to the View component of the Model-View-Controller (MVC) design pattern.

Filter by
Sorted by
Tagged with
1 vote
1 answer
2k views

Joomla 3 Backend Pagination Showing Full Results Instead

I'm creating a new component and have followed the Joomla 3 MVC tutorial (details) but cannot get pagination to work. Interestingly, when I implement the HelloWorld component linked in that tutorial, ...
1 vote
1 answer
1k views

How do I add print button in Joomla list view.?

I have created my business logic in model, but in view part I'm not so expert of how to use JHTML. Can anyone tell me how can I add a print button in joomla list view?
1 vote
1 answer
256 views

Use of com_checkin and $canChange and $canCheckin in listview

I 'm writing a listView's default layout for my component in which I 'm implementing Joomla's publish & unpublished feature in which user can publish an item on single click on check box. I am ...
1 vote
1 answer
416 views

Joomla 3 frontend view xml: How do I add a custom field to the menu item's paramaters?

I have frontend views on a custom component. When I add a menu item for that view, I want a tab with custom paramaters. The field type will be sql. This is what I have thus far: <?xml version=...
9 votes
3 answers
2k views

Search tools is not open by default

We are implementing the core search tools in our custom component list view. When I click the search tools it shows the below form which is perfect. When I click the drop down and select a ...
2 votes
1 answer
1k views

Correct / Best way of calling model methods inside view.html.php

Which is the correct/best method of calling model methods inside view.html.php. Method 1 $mydata = $this->get('MyData') ; Method 2 $model = $this->getModel() ; $mydata = $model->getMyData(...
8 votes
1 answer
130 views

What is the correct method of developing a front-end list and edit view

I created 2 front-end views. One view is to list the records and an another view to edit a particular record. The first view name is 'products' which shows the list of products from the table. In ...
4 votes
1 answer
683 views

How can include the component view in plugins

I have custom component and plugins and listing some details in table after click on the table i'll go to details page. i want show the one of details in article, so i created a custom plugins and got ...
7 votes
1 answer
3k views

How should I use view.raw.php properly

I'm trying to add a custom JToolbar button to my list view that will export the list contents to excel. I created a new task in my list controller to render the raw view class in a file called view....
2 votes
1 answer
474 views

How to avoid loading a module in a view without creating a menu item for that view

I have multiple modules set to display on all pages except those selected. Most of the views in my component have a regular menu item assigned and as such I can add them to the 'BUT the selected list'....
5 votes
1 answer
2k views

How to add image/icon to the header of the administration pages of a component?

I am building my own component and I would like to add my icons/images left of the Title in the administrative pages of the component (backend), like the core components have. How to do this?
1 vote
1 answer
915 views

Access Model State Variable in View

This might a simple question, I've Model State variable set in my Model. When I "print_r" it in view. It provides following output: JObject Object ( [_errors:protected] => Array ( ...
-1 votes
1 answer
441 views

The component view is rendering before the template and is being removed

I have a component that has a view. The problem I'm having is that the view for the component is being rendered before the template, and then the template is overwriting it. I can put debugging in ...
1 vote
0 answers
287 views

ContentBuilder Views Component doesn't list Views with SEF URLs

I'm using ContentBuilder Views plugin to display my forms results. It works just fine, the problem is that it only works with NO SEF URL's. And i really would like to use SEF URL's so my links would ...
2 votes
1 answer
359 views

Joomla layout difference edit.php and default.php

I had already created some custom components in the past and how it is, at the beginning you cannot understand all things in detail. But with continuing always new question arise. Could someone ...
1 vote
1 answer
49 views

HTML in the Component's view is being overwritten

I have a component view being mapped to an alias: /view1 is being redirected to ?option=com_mycomponent&view=view1 When I hit www.mysite.com/view1, I can see that the execution path is hitting ...
2 votes
1 answer
245 views

Component Views don't appear when creating a new menu item

In Joomla 3.2, I have a component with many views. I want to create a menu item that will point to each separate view. For example: /view1 would redirect to ?option=com_mycomponent&view=view1 /...
1 vote
2 answers
671 views

Text with space entered via tinymce editor showing unexpected behaviour at front end

in one of my component record entry form i placed a editor which use tinymce from joomla configuration. i save record by entering some texts for a description field like "description description ...
2 votes
2 answers
2k views

Search engine for a custom component

I need to add search engine to my component. In database I have three feilds: name, post, address. How to add searching with this fields separatly? For example in the view I add three fields and ...
5 votes
2 answers
8k views

Show image using file_get_contents in a popup window

I am trying to show an image in a popup window using file_get_contents function and an echo statement. Here is the code I have in the first view <a href='javascript:window.open("index.php?option=...
2 votes
1 answer
342 views

Featured view Title position?

I would like to change how articles are viewed for the featured list view used for my homepage. Normally articles display there title first above intro image and content. Is it possible to change it ...
4 votes
1 answer
1k views

Custom Component - Linking File Upload From Controller to View

I have a custom component that takes input from the admin and displays it as a custom styled view on the front-end of the site. One of the fields is a file upload for an image and I cannot figure out/...
0 votes
1 answer
128 views

Joomla Tag Result Page Accordion [closed]

I would like to change the Tag Search Result page to list the categories containing the articles found by the Tag Search within an accordion menu. Explanation: The Categories are the main menu items ...
0 votes
1 answer
536 views

Multiple task with one

I am looking for a way to build multiple task with 1 layout/view for example: administrator/index.php?option=com_component&task=form.one administrator/index.php?option=com_component&task=...
5 votes
3 answers
203 views

Stop robots from getting site/article content

This is not a question about indexers, most of them obey robots.txt file. But maybe you noticed publicized cases where Facebook or Skype followed URL's posted by users or which were sent via private ...
6 votes
2 answers
983 views

Override a component view for a specific menu item

How can I override the component view for a specific menu item? For a global overwrite I can use template/html/com_xxx/. But how can I do it only for a specific menu item? Example : Joomla! has a ...

1
2