Closed (fixed)
Project:
Modal
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
1 Aug 2018 at 08:52 UTC
Updated:
16 Oct 2018 at 16:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
renatog commentedHello Ralf, how are you?
For the moment is not possible use HTML in the modal content because we're using filter_xss on this line:
$text = filter_xss($modal[2]);It's is for security reasons.
Comment #3
renatog commentedWe create one feature request with your suggestion:
#2997297: Create option to use html (specific tags) inside of Modal Page content.
We can create one feature with this feature
Thank you very much, Ralf.
Best,
Comment #4
renatog commentedHi Ralf.
Done.
Now you can insert HTML in your modal. Insert allowed tags:
Thanks for the suggestion.
https://www.drupal.org/project/modal_page/issues/2997297
Best Regard
Comment #5
Ralf R. commentedHi Renato,
thx for following up on this one :-) Had to do the job in the meantime so wasn't able to use your update for this project.
Tested it a minute ago an found that
<front>|Test|<h1>Test H1</h1><h2>Test H2</h2><h3>Test H3</h3><p>test p</p><img>|Closeis not converted to structured html-output as intended, see screenshot.
Any idea?
Regards,
Ralf
Comment #6
renatog commentedPerfect Ralf!
I'll check it for you!
Are you present on Drupal Slack? (drupal.slack.com)
If yes, what's your user?
Comment #7
Shahzaib Ashraf commentedNotice: Undefined offset: 1 in modal_page_page_build() (line 63 of C:\xampp\htdocs\drupal\sites\all\modules\modal_page\modal_page.module).
Notice: Undefined offset: 1 in modal_page_page_build() (line 73 of C:\xampp\htdocs\drupal\sites\all\modules\modal_page\modal_page.module).
Notice: Undefined offset: 1 in modal_page_page_build() (line 77 of C:\xampp\htdocs\drupal\sites\all\modules\modal_page\modal_page.module).
Notice: Undefined offset: 1 in modal_page_page_build() (line 63 of C:\xampp\htdocs\drupal\sites\all\modules\modal_page\modal_page.module).
Notice: Undefined offset: 1 in modal_page_page_build() (line 73 of C:\xampp\htdocs\drupal\sites\all\modules\modal_page\modal_page.module).
Notice: Undefined offset: 1 in modal_page_page_build() (line 77 of C:\xampp\htdocs\drupal\sites\all\modules\modal_page\modal_page.module).
I have used Drupal 7 i install Modal page and configure then this error occur. plz resolve my issue.
Comment #9
renatog commented@Shahzaib Ashraf, fixed.
Committed to the dev branch.
Can you update and this error has been solved.
Comment #10
renatog commented@Ralf R: I'm checking your issue okay?!
Thank you very much.
Good Work and Good Weekend.
Best,
Comment #11
thallesHi guys, here is a little fix.
Yours faithfully, Thalles
Comment #12
thallesOops, I forgot to change the status. Adjusted!
:)
Comment #13
renatog commentedThank you Thalles!!
@Ralf, can you check our solution on the patch #11, please?!
Good Weekend guys!
Thanks.
Comment #14
Ralf R. commentedHi Renato, Hi Thalles,
somehow I don't get notified when someone's posting a reply :-(Sorry, for the delay.
Have updated to v1.1 but no structured output, so I assume that Thalles patch isn't incorporated yet?
In case Thalles' patch has to be added... How do I incorporate pat-files into the running D7? I tried
0. Uploaded patch-file to sites/all/modules/modal_page/test.patch
1. terminal to my machine
2. changing directory to sites/all/modules/modal_page
3. patch -p0 -b < test.patch results in:
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/modal_page.module b/modal_page.module
|index 78ed8c2..d4a751b 100644
|--- a/modal_page.module
|+++ b/modal_page.module
--------------------------
File to patch:
Typed in modal_page.module which leads to
patching file modal_page.module
Hunk #1 FAILED at 74.
1 out of 1 hunk FAILED -- saving rejects to file modal_page.module.rej
Comment #15
renatog commentedHi Ralf, how are you?
You can apply this patch with this command:
patch -p1 < ~/Downloads/modal_page-html_and_images-2989735.patchBut I checked and this patch really works good.
I'll commit it and you can make just an little update okay?!
Comment #17
renatog commentedCommitted and pushed to the dev branch.
Thank you very much for your good solution Thalles!!
Very good man! Congrats!!
Best,
Comment #18
renatog commented@Ralf R. Was been created the new release: https://ftp.drupal.org/files/projects/modal_page-7.x-1.2.zip
#3003849: Create new release: 7.x-1.2
Can you update, please?!
Now there is this feature:
Thank you very much @Ralf R. and thank you very much @Thalles for you fix!! Good catch dude!!
Good Work and Good Week.
Best,
Comment #19
Ralf R. commentedCan confirm. It's working as intended!
Two Thumbs up.
Thx again and a great week to both of you too :-)
Comment #20
thallesThank's @Ralf R!
I am happy, for help you!
Thank's @RenatoG (Renateira)!