51 Posts
ilga
8 years ago
12
Topic

I have created new content type Cars. At the bottom of the form there are two buttons Save  button and Cancel button. If i click cancel button it show me messages for required fileds, but doesn't close the form. But when I edit an article, the same cancel button works. Who had the same problem before Joomla 3.4.1 Seblod 3.6.0

Get a Book for SEBLOD
45 Posts
Jan
8 years ago
0
Level 1

Yes, the same here.

I have found a workaround:

In your template - mine is Simple Simon - after

$cck->renderField('button_save_close'),' or ';} ?>

add:

<a class="btn btn-default" role="button" href="/<?php echo JRoute::_('index.php'); ?>" title="<?php echo JText::_('JCANCEL'); ?>"><?php echo JText::_('JCANCEL'); ?></a>

and you will have a nice good working cancel button in case you have Bootstrap 3, redirecting to an empty form on the same page. For Bootstrap 2, the Joomla standard, I think you have to adapt the class and role.

8 Posts
JMG
8 years ago
1
Level 1

Same here. Joomla 3.4.3 and Seblod 3.6.2 in administration area and anything thing that uses Seblod, including Seblod Component area.

Minor bug but I don't see it under the bug tracker. Ether that or it is labeled as something else.

I really don't want to mod the template as that tends to get overwritten in updates.

45 Posts
Jan
8 years ago
0
Level 2

You may override the output of content in your template installed in Seblod. I use Simple Simon. These overrides will not get overwritten in updates. This is not modding core items.

8 years ago
0
Level 1

I have the same Problem...i use the template seb_one, how can i fix this?

8 years ago
5
Level 1

Hi,

Are you speaking about back-end (admin side) or front-end (site side) or both?

Thanks

8 years ago
4
Level 2

for the admin side pls

8 years ago
3
Level 3

Thanks AUTeddy!

The button bar in SEBLOD on admin side is managed automatically (such as in Joomla). Are you on last version for Joomla and SEBLOD? Are you speaking about this default button bar managed by SEBLOD? Have you any other extensions which execute a specific process on admin side?

Thanks

8 years ago
2
Level 4

It's the button bar managed by seblod -> the "Cancel" button... i just go in to "new article" and click the cancel button, then it says that the title is required, and won´t let me cancel.

Joomla is the lateset and Seblod is 3.6.2

8 years ago
1
Level 5

Yes. But I suppose that you have not only SEBLOD installed on your website. Certainly a JS conflict. Take a tour on your other extensions, try to disable them, test, and again.

It's always better to be on the last version of SEBLOD. We invite you to update it.

8 Posts
JMG
8 years ago
0
Level 6

I can confirm at least on one of my Seblod sites that upgrading to 3.7.0 alone fixes the problem.

Upon hitting cancel you can see the "required" tool tips popup but it cancels after a brief flash (looks like some kind of reload/refresh).

Regardless, 3.7.0 fixes this for me (note it hadn't show up in my extensions update thus why I didn't know it was out).

45 Posts
Jan
6 years ago
1
Level 1

Hi All,

The solution of Jan does not work well: one "/" to much and it does not checkout. This is the same as using "Go Back".

A better way is this one:

<?php echo $cck->renderField( 'button_save_close' ),' or ' ; ?><a role="button" href="javascript: void(0);" onclick="JCck.Core.submitForm('cancel', document.getElementById('seblod_form'));" title="Cancel">Cancel</a>

It checks out en redirects to the last page.

4229 Posts
Kadministrator
6 years ago
0
Level 2

This should be fixed in current version, please don't reopen old posts.

Get a VIP membership