I am trying to edit the Login page for Oracle Apex Application.
.t-PageBody--login .t-body{
background: url(#APP_IMAGES#dataact_back.jpg)
background-size: 100% Auto;
}
After I've applied above CSS code in the css field, website still isn't displaying the image and I have no idea where it went wrong.
Your syntax is wrong and you should try this:
.t-PageBody--login .t-body {
background: url(&APP_IMAGES.dataact_back.jpg);
background-size: 100% Auto;
}
Related
I am new to foswiki, and have it spun up running on a vm at my companies datacenter.
I have most of the baseline config down, but am wondering about some more customization.
Specifically I am looking for some documentation on how to customize the sidebar. Any documentation or tips ya'll hit me back with would be appreciated!
Thanks!
I assume you are using the default theme 'PatternSkin'
One Example of modifying the Sidebar is to change the width:
to do this create a attachment 'SidebarCustomWidth.css' with the following css
#patternOuter {
margin-left: 8em;
}
#patternSideBar {
width: 8em;
margin-left: -8em;
/*background-color: rgb(200, 200, 255);*/
}
/* remove padding */
#patternSideBarContents {
padding-right: 0;
padding-left: 0;
}
then you can use it with
* Set USERSTYLEURL = %PUBURLPATH{topic="TheWebname.TopicWithAttachment" "SidebarCustomWidth.css"}%
you can find this example at
https://foswiki.org/Sandbox/StefanKr%C3%BCger/PatternSkinCssCookbookSidebarCustomWidth
and some more Documentation and Examples at
https://foswiki.org/System/PatternSkinCssCookbook
Other Options to customize the Content of the Sidebar can be found at
https://foswiki.org/System/PatternSkin#Top_44_Bottom_and_Left_Bar_customization
regarding the Sidebar you can look for WebLeftBar.
every web has its own Topic WebLeftBar. you can change this to your needs. If a Web has no WebLeftBar Topic and no WebLeftBarExample Topic (thats the fallback) the Sidebar does not render.
if you want to change the defaults for new webs you can do this in the _default web.
I have built a plugin that includes the following ImageField in the model:
image = models.ImageField(upload_to=get_feature_media_url)
This plugin also has the following template (which has been stripped down to remove irrelevant tags:
<img src="{{ instance.feature_block.image.url }}">
This image renders fine 9/10. However, occasionally Django decides to spit out the following HTML:
<img src="<correct-image-path>" width="0" height="0"
style="display: none !important;visibility: hidden !important;
opacity: 0 !important; background-position: 0px 0px;">
It seems to me that DjangoCMS really doesn't want to show this image. It's a reusable plugin and gets used over and over all across the project. Most of the time it renders fine. But I have to delete the entry in the database and do it again for it to show.
I have discussed this with members of the team and we're stumped. I have no idea why the plugin refuses to show this image.
Any help is appreciated. Thanks.
Do you by any chance have an adblocker installed in your browser? Does this happen even if you disable your adblocker?
Does anybody know how to change the size of the fonts appearing in tags of the tag-it plug in? I went over the stylesheet but it does not seam obvious to me how to do it.
It is in the color specifc css file, tagit-stylish-yellow.css for example.
Look for
ul.tagit { cursor: text; font-size: 14px; color: #333; }
and change the font-size.
I found this by going to the demo site in Chrome, start the inspector by pressing F12, selecting the tag and looking at the css directives that affect it.
I am using CKeditor in my application.When i save content of the CKEditor output is added with tags like this.
<B>Summary:</B>
<P><BR><SPAN style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; LETTER-SPACING: normal; DISPLAY: inline !important; FONT: 15px/20px Helvetica, Arial, sans-serif; WHITE-SPACE: normal; ORPHANS: 2; FLOAT: none; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">The company's latest tweet simply states that "our team continues to investigate, but at this time, we're still unable to confirm that any security breach has occurred. Stay tuned here."</SPAN></P><BR>
<P><BR>Facebook : http://www.facebook.com</P><BR>
How Can I remove all the "break" tags out of above sample using regular exression in javascript.
Upon Save Text should be appended to "Summary : " like here
Summary: Call back the department if you have not heard from them.The initial story was triggered after a user in a Russian forum
claimed that he hacked and uploaded almost 6.5 millionThe initial
story was triggered after a user in a Russian forum claimed that he
hacked and uploaded almost 6.5 million
But now it's coming like this
Summary:
The initial story was triggered after a user in a Russian forum
claimed that he hacked and uploaded almost 6.5 millionThe initial
story was triggered after a user in a Russian forum claimed that he
hacked and uploaded almost 6.5 million
I am using replace(/[\n\r\f]/g, ' ') ;
replace(/\<!>[\s\S]*?\<!>/ig, '')
but no use.help me.
Finally
CKEDITOR.instances.editor1.getData().replace(/(\r\n|\n|\r)/gm,"");
worked perfectly for my issue.
Thanks.
replace(/[\n\r\f]/g, ' ') ;
will remove actual newlines not the coded ones
try
replace(/<BR>/g, '') ;
or if you want to remove all tags
replace(/<[^>]*?>/g, ' ') ;
I'm trying to disable the add/change for certain models, and I'm doing so by overriding the add_view method in the admin object. In so doing, I want to add a message to the user, then redirect. I'm adding the message this way:
messages.add_message(
request,
messages.ERROR,
"Please use the other interface.",
)
after following this:
http://readthedocs.org/docs/django/en/latest/ref/contrib/messages.html
And it works, but it shows up with a little green check mark next to it, as if it were a success. I checked the template, and it adds whatever classes are in message.tags (and if there's warning, or error, you get different icons than the check mark). But when I make a message the way that link above says (or any other way I've found), I don't see tags on the message object.
Any ideas what might be going wrong?
I just had an experience yesterday where I encountered the exact same thing. What solved it for me, believe it or not, was restarting the web service. I was working locally with ./manage.py runserver so not sure whether that was your scenario or not.
Incidentally, I have found other bizarre django oddities, particularly when creating a lot of new code, solved by doing this.
Make sure that in settings.py, the MIDDLEWARE_CLASSES list contains
'django.contrib.messages.middleware.MessageMiddleware',
Otherwise, Django messages sort of work, but only for authenticated users, with broken message tags, and possibly other problems.
(I just ran into the same problem, and adding that line fixed it.)
This is what is in my django admin base.css:
ul.messagelist li {
font-size: 12px;
display: block;
padding: 4px 5px 4px 25px;
margin: 0 0 3px 0;
border-bottom: 1px solid #ddd;
color: #666;
background: #ffc url(../img/admin/icon_success.gif) 5px .3em no-repeat;
}
Which means despite it's class or tags, it gets the icon. Just has to be a message <li> in the messagelist.