Monday, 19 February 2018
  31 Replies
  2.6K Visits
0
Votes
Undo
Hi experts,

I wonder why I can't create different icalevent.edit_pages for different categories.

Do I overlook something?

regards,
Berndi
Monday, 19 February 2018 13:29
·
#197756
0
Votes
Undo
Hello Berndi,

No you didn't. But the issue is more complicated, because you don't know what category the edit page is until you load the event edit page which has the category selector to select the category...

Many thanks
Tony

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

Monday, 19 February 2018 13:46
·
#197757
0
Votes
Undo
Aaaargh!

How can I solve this problem.
I just need it for one category.

regards,
Berndi
Monday, 19 February 2018 21:05
·
#197765
0
Votes
Undo
You could have a page class and create a menu item for this 1 category and style it with CSS?

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

Tuesday, 20 February 2018 07:36
·
#197772
0
Votes
Undo
Well, that sounds great, but I haven't understood yet how it works with jevents.
Will it be possible too, to create an alternative adminpanel where I can call this menuitem?
Tuesday, 20 February 2018 14:20
·
#197800
0
Votes
Undo
Hi Berndi,

If you create a JEvents Event Edit Page Menu item, under page display I think it is you can set a Page class. Then you can use some custom CSS to re-style it.

But you haven't said exactly what you want to do apart from edit it?

Many thanks
Tony

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

Tuesday, 20 February 2018 17:32
·
#197813
0
Votes
Undo
I just want to have some parameters set by default without the possibility to edit them.
And just four editable fields on one simple formular

title, startdate an -time and description
all the other parameters should set to defaultvalues without showing them.

regards,
Berndi
Wednesday, 21 February 2018 09:02
·
#197827
0
Votes
Undo
Hi Berndi,

Ahh ok so that is not possible with some CSS that's a bit more complicated.

Are you familiar with php? You could create a template overrides?

Many thanks
Tony

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

Wednesday, 21 February 2018 12:06
·
#197839
0
Votes
Undo
Well yes,
I allready created an Override for the calendarvie nur can't find the icalevent.edit to created an override.

It seems that it is a little more tricky

regards,
Berndi
Wednesday, 21 February 2018 12:47
·
#197844
0
Votes
Undo
Ok so see:

https://www.jevents.net/docs/jevents/item/template-overrides-for-event-editing

You will probably need to get the filters passed in by the menu item for the category, if it exists Run X else Run Y.

Many thanks
Tony

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

Wednesday, 21 February 2018 13:32
·
#197849
0
Votes
Undo
How can I create a own menuitem for this override?
Wednesday, 21 February 2018 21:58
·
#197869
0
Votes
Undo
Hi Berndi,

The same way you create any menu item? Joomla -> Menus -> New Menu Item -> Select JEvents Create

Many thanks
Tony

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

Thursday, 22 February 2018 06:23
·
#197881
0
Votes
Undo
Well, I know that.

What I mean is, how kan I make the override appear in the selection?
To do this with standard-joomla-overrides (for example com_content/form) I have a XML-file to let the new menuitem be shown in the selectionlist.

How can I do this with com_jevents?
There are no XML-files.
Thursday, 22 February 2018 12:18
·
#197888
0
Votes
Undo
Hello Berndi,

You can't which is why I said about fetching the menu item id and using this as a condition. Then you can have sub layout say original and simplified which depending on wether the itemid matches it loads simplified or original if you follow?

Many thanks
Tony

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

Thursday, 22 February 2018 12:27
·
#197890
0
Votes
Undo
can't follow. :(

I can't call the sublayout of the edit-page.

There must be a possibility to call it by a menu-item with a new entry in the menu-item-manager.

For exmple:
I created an alternative layout for article-editing at com_content by copying and renamig the template-file of com_content/views/form/ to the template-folder with a specific name.

edit.php --> something.php
edit.xml --> something.xml

Then doing some changes at the XML-file.


...and so I got a new selection for content-edit with my special layout in menu-item-manager.


All I want to do ist the same with the JEvents icalevent.edit-page

But don't know how to do that.
Thursday, 22 February 2018 15:07
·
#197893
0
Votes
Undo
This is ideally why you need a developer, this is intermediate PHP.

If you open up edit.php
You can add in a query:


$app = JFactory::getApplication();
$menuId = $app->getMenu()->getActive()->id;


Then you can do:


if ($menuId == 229) {
include_once('mylayout.php');
} else {
include_once('mydefaultlayout.php');
}


Many thanks
Tony

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

Thursday, 22 February 2018 19:23
·
#197907
0
Votes
Undo
Okay.
So far, so good.

Now I try to writ emy own editpage.
The problem is, that the original page builds the form with the content of $this->replacetags

$output = ob_get_clean();
$this->replacetags[] = $output;
echo $output;


How can I modify this?
I just need a few of them.
Sunday, 25 February 2018 03:04
·
#197985
0
Votes
Undo
I'm totally confused.

I can't edit the frontend form.
I can't set default values.

I did everything told in this article.


<?php
defined('_JEXEC') or die('Restricted access');

$app = JFactory::getApplication();
$menuId = $app->getMenu()->getActive()->id;

if (!isset($this->jevviewdone)){
$this->loadModules("jevpreeditevent");

if ($menuId == 1687) {
if ($this->row->title()==""){
$this->row->title("BlaBlaBlubber");
$this->row->icsid(3);
$this->row->catid(119);
$this->row->noendtime(1);
$this->row->location("Jahnturnhalle (JTH)");
}
var_dump($this->row);
$this->setupEditForm();
include_once('beach.php');
} else {
include_once(JEV_ADMINPATH."/views/icalevent/tmpl/".basename(__FILE__));
}
/*
$bar = JToolBar::getInstance('toolbar');
$barhtml = $bar->render();
$barhtml = str_replace('id="','id="x', $barhtml);
echo $barhtml;
*/
$this->jevviewdone = true;

$this->loadModules("jevposteditevent");

}


The call of beach.php works, but I don't have any idea to customize the form.
Everything I do results in the same - god dammned - tabbed form.

The defaults doesn't work either except of the noendtime

please help
Tuesday, 27 February 2018 15:28
·
#198078
0
Votes
Undo
Hello,

Did you include the raw file from:

include_once(JEV_ADMINPATH."/views/icalevent/tmpl/".basename(__FILE__));

Is beach.php definitely loading?

change:

$menuId = $app->getMenu()->getActive()->id;

to:

$menuId = (int) $app->getMenu()->getActive()->id;

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

Wednesday, 28 February 2018 07:29
·
#198140
0
Votes
Undo
Yes, I included the edit.php from the right path and renamed it to beach.php
I made some changes to ensure that it loads.
All the changes I made are loaded till line 153.
Everything I change after this line will not be considered.

now to the defaults...
to set the defaults of row->location it is necessary to use the location id and not the name.
to set the default value of "row->title" doesn't work.
to set the default value of "row->catid" isn't becessary anymore but doesn't work either.
to set the default valoe of "row->noendtime" works perfect.

But how can I get rid of this tabbed view?

I just want to have a simple form with
title
loaction
startdate and time
and the description

everything else should be hidden with default values.

I don't get it. :-(
Monday, 05 March 2018 09:20
·
#198374
0
Votes
Undo
How are you trying to set them?

Can you provide your simple custom override?

Many thanks
Tony

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

  • Page :
  • 1
  • 2
There are no replies made for this post yet.

Members Area

Show your support

Unlike many Joomla calendars we do not charge to download JEvents - please show your support for this project by becoming a member of the JEvents Club Club members get access to early releases, exclusive member support forums, and Silver and Gold members can use many exciting JEvents addons

Your membership will ensure that JEvents continues to be the best events calendar for Joomla.