Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [view]

The tag has no usage guidance.

1
vote
2answers
31 views

How to hide grey 'button bar' in administrator component view

Is it possible to hide the grey bar where buttons would normally go in an administrator view of a custom component? The grey bar shown below: I have no buttons to show, so don't want it to take up ...
0
votes
1answer
20 views

Multiple templates for the same view of a custom component

In my custom component, I would like to have multiple slightly different templates for the same view. Something like com_things/ ... - views/ - thing/ ... - things/ - tmpl/ ...
1
vote
1answer
79 views

Specify view and layout when adding a button with addNew()

I'm adding a button to the toolbar using JToolBarHelper::addNew('thing.add'); I want it to have the same effect as clicking on the following menu button: <menu view="thing" ...
0
votes
1answer
33 views

0 Class 'EngineeringHelpersEngineering' not found

I am developing a custom component and when I try to call my view I am receiving this error. The error occurs at: .\components\com_engineering\views\commentform\tmpl\default.php:24 Here is line 23 ...
1
vote
1answer
40 views

How can I have a dynamic $default_view?

Something along the lines of: JLoader::Register('MyComHelperConfig', JPATH_COMPONENT_ADMINISTRATOR . '/helpers/config.php'); class MyComController extends JControllerLegacy { protected $...
4
votes
1answer
66 views

Create alias for alternate view format

I've just created an RSS feed view format for one of the views in my component. This is contained in: components/com_mycomponent/views/myview/view.rss.php I'd now like to allow access to this via ...
1
vote
1answer
176 views

Component view problem. Model method not called

Today I made my first Joomla component following their tutorial. Everything in my component was working as intended until I decided to add a second view to my component. I added a new folder in the /...
0
votes
1answer
59 views

string together multiple partial templates

I have a database with two parent tables and several child tables. I need to display a single parent record from one table with all the related records from each child on a single page. I thought ...
0
votes
1answer
107 views

Join two list views without a shared key

I have a front end list view for a table called #_students and a separate front end list view for a table called #_sessions. The two tables have no shared foreign key and the two data sets are ...
0
votes
0answers
15 views

How to display the year inteast of group items in a Category Blog layout

I'm adapting the Vertical Timeline https://codyhouse.co/gem/vertical-timeline/ in a category view layout. I need to publish the year from the published date by group of the items for example: 2017 ...
4
votes
1answer
95 views

SQL syntax error when attempting to filter list view - how to build WHERE clause?

I built a Joomla component for a school using component-creator.com and now I am trying to modify the source files. My current view lists off all parents and students in my database, visible to all ...
3
votes
1answer
348 views

Where query in Joomla component - what file do I edit?

Okay, so I am completely new to Joomla and I am trying to edit the source files of a component I built using component-creator.com. I have a database which stores different data for multiple ...
3
votes
1answer
421 views

Redirect to specific tab in view

I'm working on a Joomla component and need help in redirecting to specific tab. I have created multiple tabs in my view using bootstrap (eg: JHtml::_('bootstrap.startTabSet', 'myTab', array('active' =...
1
vote
1answer
373 views

Override View path in the Controller is only partially working

In my main controller, I'm successfully incorporating a custom path for the Model, but seem to be missing something for the custom path to the View. The component path is: \components \...
0
votes
1answer
228 views

Can a model display itself within the view of a different model?

This isn't a question about getting model data into another view. I can create a huge form with data from multiple models. But, is that necessary? Can a model display its view within the context of ...
1
vote
0answers
50 views

How to implement nested submenus in the administrative sidebar?

I'm using JHtmlSidebar::addEntry() to build a menu in the sidebar. However, I need a better way to organize the menu items in there. I don't see a way to easily create a nested menu structure. I'm ...
0
votes
1answer
256 views

How to implement a phone number field mask in custom component?

How can I implement an input field mask for JForms in my component? Specifically I want a phone number mask something like ()-____. I only want users to enter digits and not have them enter ...
0
votes
1answer
74 views

How to sort a fabricated column in my view that I've stitched together with data from multiple columns?

I have a view that displays a list of data from a table (I'm targeting Joomla! 3.5+). However, I fabricated a column that stitches data together after some manipulation. I do this in the getItems() ...
1
vote
2answers
1k views

How to render a component view in a module?

Brief I have a component and have a form in it. And I want to render the same form in a module. An example can be core Joomla article edit form components/com_content/views/form/tmpl/edit.php which ...
2
votes
1answer
216 views

Is it possible to insert a view of a component into an article or into the template without using plugins or iframes?

Is it possible to display a view of a component without iframe and plugin? (That is to say, if possible with a few lines of PHP and maybe SQL queries?) To be more clear: I'd like to do it directly in ...
0
votes
1answer
1k 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
1answer
336 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=...
2
votes
1answer
622 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
1answer
98 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 ...
1
vote
1answer
656 views

Joomla-Development: Set default view

I would like to set up a default view. If my component gets called by using administrator/index.php?option=com_bestia&view= I'm getting the error: 404 View not found [Name, Typ, Präfix]: bestia,...
5
votes
1answer
249 views

Joomla singular and plural view names

Is there a built in functionality available in joomla to determine the view name to plural? I created 2 views as 'delivery' and 'deliverys'. The view 'delivery' is to display the records in a list ...
3
votes
1answer
481 views

How to redirect to a “part-view” of a view file?

I have a view called Vtour. Inside Vtour I have these files: view.html.php index.php /tmpl/ /tmpl/default.php So default.php is the default view which loads a form that a user can select elements to ...
4
votes
1answer
462 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 ...
4
votes
2answers
2k views

How to remove component name from URL?

I am making a custom component and I dont want the name of the component on the URL when component loads. The URL is coming like this : http://example.com/component/componentName/view=viewName But ...
2
votes
1answer
311 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'....
7
votes
3answers
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 ...
1
vote
1answer
556 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 ( ...
0
votes
1answer
65 views

Giving viewing access to each group

I created three groups (staff, partner & dealer) under same parent - Registered and Viewing to associated groups (staff -> staff, partner -> partner, dealer -> dealer). When I wrote a content and ...
1
vote
1answer
212 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 ...
7
votes
2answers
3k views

What is the recommended way to structure a Joomla 3 custom component view using angularJS?

There is very little information out there from users who have successfully integrated angular js in a joomla custom component list view. I found the following: https://stackoverflow.com/questions/...
1
vote
1answer
864 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
votes
1answer
381 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
0answers
248 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
1answer
272 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
1answer
47 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
1answer
206 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 /...
5
votes
2answers
4k 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
1answer
252 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
1answer
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/...
2
votes
2answers
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
1answer
1k 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
2answers
82 views

Pulling featured articles from another remote Joomla install with images via RSS or otherwise

I am looking at taking the featured articles from one Joomla site (via RSS at least) and pulling it into another Joomla site (or more). The only problem is that I require the featured article's image ...
0
votes
1answer
109 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 ...
1
vote
2answers
884 views

Only show articles by current user in category view using plugin

Hi I'm trying to write a content plugin that will only show articles written by the currently logged in user in the category view. Using the onContentPrepare and onContentBeforeDisplay triggers I ...
0
votes
1answer
445 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=...