form designer calander template help needed

soaringeagle
@soaringeagle
9 years ago
3,304 posts
situation:
1: i want only certain profiles to be able to access the title and description to post general events in the publically accessable calander.

2: other profiles have no access to title or description, only a chain select options

3 general calander exludes events where chain selects used, or only uses events where title is not null

4 special chan select calander shows calander view (not list) and instead of title showing in calander shows user_id chain select option 1 and optional chain select option 2

using this currently
{jrCore_module_url module="jrEvent" assign="murl"}
{debug}

<div class="block">
    <div class="title">
        <div class="block_config">
            <select class="form_select" style="width: auto" name="calendar_month" id="calendar_month" onchange="var m=this.options[this.selectedIndex].value; jrCore_window_location('{$jamroom_url}/{$murl}/calendar/'+ m +'/{$year}')">

                <option value="1" {if $month == "1"}selected="selected"{/if}>{jrCore_lang module="jrEvent" id="41" default="January"}</option>
                <option value="2" {if $month == "2"}selected="selected"{/if}>{jrCore_lang module="jrEvent" id="42" default="February"}</option>
                <option value="3" {if $month == "3"}selected="selected"{/if}>{jrCore_lang module="jrEvent" id="43" default="March"}</option>
                <option value="4" {if $month == "4"}selected="selected"{/if}>{jrCore_lang module="jrEvent" id="44" default="April"}</option>
                <option value="5" {if $month == "5"}selected="selected"{/if}>{jrCore_lang module="jrEvent" id="45" default="May"}</option>
                <option value="6" {if $month == "6"}selected="selected"{/if}>{jrCore_lang module="jrEvent" id="46" default="June"}</option>
                <option value="7" {if $month == "7"}selected="selected"{/if}>{jrCore_lang module="jrEvent" id="47" default="July"}</option>
                <option value="8" {if $month == "8"}selected="selected"{/if}>{jrCore_lang module="jrEvent" id="48" default="August"}</option>
                <option value="9" {if $month == "9"}selected="selected"{/if}>{jrCore_lang module="jrEvent" id="49" default="September"}</option>
                <option value="10" {if $month == "10"}selected="selected"{/if}>{jrCore_lang module="jrEvent" id="50" default="October"}</option>
                <option value="11" {if $month == "11"}selected="selected"{/if}>{jrCore_lang module="jrEvent" id="51" default="November"}</option>
                <option value="12" {if $month == "12"}selected="selected"{/if}>{jrCore_lang module="jrEvent" id="52" default="December"}</option>
            </select>

            <select class="form_select" style="width: auto" name="calendar_year" id="calendar_year" onchange="var y=this.options[this.selectedIndex].value; jrCore_window_location('{$jamroom_url}/{$murl}/calendar/{$month}/'+ y)">>
                {foreach $_years as $v}
                    {if $v == $year}
                        <option value="{$v}" selected="selected">{$v}</option>
                    {else}
                        <option value="{$v}">{$v}</option>
                    {/if}
                {/foreach}
            </select>
        </div>
        <h1>{jrCore_lang module="jrEvent" id="53" default="Event Calendar"}</h1>
    </div>
</div>

{jrEvent_calendar month=$month year=$year}

that at least gives me the calander view, but see no way to change whats displayed in the actual events
I've tried the other templates which only show the table header with the day of the week
nothing below that
i'm guessng that i have to use more then 1 template to achieve what i want?

i know exactly how i want it to work..i know how all the pieces should fit together, but i'm not figuring out which templates i'd need to alter to alow both a regular events style and this special events style simultaneously in 2 separate calander views (pages)



--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities

updated by @soaringeagle: 01/24/17 02:42:45AM
michael
@michael
9 years ago
7,772 posts
The calendar is not {jrCore_list} the only options it has are:

* year=
* month=
* profile_id=

Docs: "Event Calendar"
https://www.jamroom.net/the-jamroom-network/documentation/modules/276/event-calendar

So if you need "all the events that happen on a saturday from profiles in quota_id 3" then you'll need to use {jrCore_list} to retrieve the info, then build a calendar layout in your skin to display that.

Its a good idea though, I'll add it to the suggestions for future features to the event calendar module.
soaringeagle
@soaringeagle
9 years ago
3,304 posts
if it helps i can go into more detail of what id like to see
basicly i don't want the list i want the calander view, but general events only postable by certain quotas
general members can only post ..well in this case flight scheduling
so instead of the event title the date would list the user name the plane scheduled and if needed the instructor (and times scheduled)
i created a chain select (1st time using it ..great feature!) with option 1 being the 2 planes we have currently and option 2 the instructors available for each plane

i suppose i can work with the list for now
but customizing the calander view itself would be a great improvement

ps off topic jr 6 will the shops and search be improved?


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities

Tags