Question

In Joomla 3.0, an empty <a> tag with class="nolink"(ie,) is inserted for every <ul> and <li>.

Advice me how to remove this.

We are creating the component and we are creating the tabs as of default component (for ex Newsfeed component edit page).On the first tab position the <a> tag is created.

Was it helpful?

Solution

Change the following code in the function addtoolbar in the view.html.php file.

Change the mainmenu params as false in the edit page view.

JFactory::getApplication()->input->set('hidemainmenu', false);

If we need to display the mainmenu using the above code, then the following code <a class="nolink"></a> doesn't generate in the edit page.

OTHER TIPS

I think I have found the problem.
This is due to a tag which is unclosed in the /administrator/modules/mod_submenu/tmpl/default.php file in line 26.

A ticket has already been created on JoomlaCode: [#29623] Missing closing link tag in submenu layout

We just have to wait the next Joomla version.

You can also add the '</a>' tag at the end of the line 26 like this:

?><a class="nolink"><?php echo $item[0]; ?></a><?php

I tried all the default editors that came with Joomla 3.0:
(In Users -> User Manager -> Super User -> Basic Settings -> Editor:)

  • Editor - CodeMirror
  • Editor - None
  • Editor - TinyMCE

    That problem didn't occur here. I also tried using the button on TinyMCE editor to add the ul and li tags.

    Can you give more details on how did you add those ul and li tags?
    What editor are you using?

  • Licensed under: CC-BY-SA with attribution
    Not affiliated with StackOverflow
    scroll top