Questions tagged [october-partial]
32 questions
2
votes
0 answers
Having an issue with OCMS snippets
Currently, I'm trying to turn a navbar partial into a snippet, and have certain buttons or etc be editable via front-end without much effort.I've set up the snippet and posted it to the content section of my homepage.
The pages plugin itself…

Johnathan Heath
- 21
- 2
2
votes
2 answers
october cms ajax and options values
Is it possible to send value from options on example like this where x need to be value from option. This select im using on partial and ajax works with manualy added value as x. THX!
1
vote
1 answer
Using backend forms in frontend - OctoberCMS
I have a form in the back-end to create new entries. I want to allow my website's front-end users to create these entries as well, so since I already have such form and the controller in the back-end, I'd like to utilize it in the front-end as…

qwaz
- 1,285
- 4
- 23
- 47
1
vote
0 answers
Repeater in repeater causes data loss after reordering
We are using the blocks method where a repeater renders blocks. In these blocks we use repeaters again, so we have repeater in a repeater. In some cases when changing the order of repeater blocks the data of those blocks disappear which causes the…

Remko Posthuma
- 11
- 2
1
vote
1 answer
Relation Limit [ octobercms ]
I have a model called Lessons and it has a belongsToMany relationship called students with a table called students_for_lesson. Lesson model has fields called number_of_students and number_of_enrollments for each lesson.
what I want is to give a…

Dapk
- 203
- 2
- 10
1
vote
2 answers
jQuery Repeater doesn't work in a partial generated with ajax
In a form consisting of several steps generated in ajax within a single page, I have to use jquery.repeater in an intermediate step.
The form code specific to the repeater is in a dedicated partial
But jquery.repeater does not work, nothing happends…

pat-och
- 345
- 3
- 17
1
vote
1 answer
When using the Date or Timesense format in columns.yaml date is not reflecting the correct date information
I have a problem with backend lists not rendering the correct date time, and is ahead of the actual DB value of the model by 5 hours:
Here is my configuration:
Server TZ: America/Toronto
OctoberCMS timezone=>America/Toronto (config/app.php)
Here is…

David Lundquist
- 690
- 7
- 19
1
vote
1 answer
OctoberCMS: How to change the view of uploaded files for "attachMany" relation type?
The default view of the attachMany relations, tries to show the preview of the file even for non-image files. For example in the following snapshot, october tries to show preview of the pdf files:
As you can see, the preview fails for pdf files. I…

B Faley
- 17,120
- 43
- 133
- 223
0
votes
0 answers
OctoberCMS create repeater field with morph to many relationship
In my model defined images field as jsonable:
protected $jsonable = ['images'];
I have like this field in my model fields.yml file:
images:
label: 'Images'
prompt: 'Add image'
maxItems: '1'
span: left
containerAttributes:
…

Andreas Hunter
- 4,504
- 11
- 65
- 125
0
votes
0 answers
October CMS Magic Forms Plugin reCaptcha "The partial 'recaptcha' is not found"
I have October CMS v1 on my website and Magic Forms Plugin.
I want to use reCaptcha in my forms. I set the Site key and Secret key.
And put the code:
{% partial '@recaptcha' %}
But I have an error The…
Максим Грабов
- 326
- 2
- 7
0
votes
0 answers
OctoberCMS - calling PHP function wrriten in code segment in markup
Say I have a function in the code segment called "foo"
hey';
}
?>
I would like to call this function in the markup segment, something like {{foo}}.
How can I do that? I have tried doing exactly…

Esawi
- 1
- 1
0
votes
1 answer
Access Ajax request data
can you help me please?
-- I've making ajax call to partial and sending the data ( productId )
$.request('onProductLoad', {
data: {'productId': 22},
update: { 'Product/card': #result}
})
how i can access this data in function onProductLoad() in the…

Uncertain
- 1
- 1
0
votes
1 answer
Passing two parametres in url in octobercms
I must update a existing Octobercms project and it has url like this:
Все товары
And url in category page is this:
url = "/catalog/:category?"
How can I…

A'zamjon O'ktamov
- 27
- 6
0
votes
1 answer
Insert into database postgres with october cms
Hi all I am new into october cms and I am facing trouble that makes my head spinning around. I have a form that get data from user, I am using builder.
This is my form :
{% put sudah %}{% partial "expert/yes" %}{% endput %}
{% put styles %}
…

John Doe
- 9
- 5
0
votes
1 answer
how to pass variable from page to partial
HI I want to pass a value from my page and grab it on partial,for example bellow is example
Main layout
.....
{% partial 'a_partial' %}
And my partial
{{…

sahidul islam
- 3
- 1