|
I have a Drupal 6.14 site with Views module. I have a view and on the primary links I put a link to the view.
There is a way to hide the link in the primary menu only if the view is empty?
Started by dusan on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Consider that - given you are speaking about, depending on the complexity ... .
The content of that view can be changed by other users browsing the site at the same time that "our" user if a view is empty until you actually invoke it.
|
|
I've got 10 tables that I'm joining together to create a view. I'm only selecting the ID from each table, but in the view, each ID can show more than once, however the combination of all ID's will always be unique. Is there a way to create another column...
Started by Brendo on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
For example:
SELECT ROW_NUMBER() OVER isn't getting this ID for a view but some other....
No you cannot do that in a view, what you can do is create a temporary table to hold all(), at least if you can guarantee an ordering of the view.
|
|
How do you track the number of times a particular entity (say a user profile much similar to stackoverflow.com) is viewed by other users? Would it make sense to update this information when an entity is viewed using a lifecycle event like PostLoad.
Where...
Started by Joshua on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
I don't know the JPA/Hibernate, but basic logic would say: When someone loads the view, simply.
|
Ask your Facebook Friends
|
SVN Time-Lapse View is a cross-platform viewer that downloads all revisions of a file and lets you scroll through them by dragging a slider. As you scroll, you are shown a visual diff of the current revision and the previous revision. Thus you can see...
Started by keepyourliberty on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Http://blog.macromates.com/2008/git-bundle/
You may want to spend some time.
Next revisions.
|
|
This is using Rails 2.2.2
I have a model that uses the acts_as_flaggable plugin, and on the page I use to display an instance of the model, I list any flags that the model has.
When I start my Rails dev server(mongrel) using the standard script/server...
Started by hernan43 on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Look at the stack trace and see if you can pinpoint where this is ocurring in your code, then wrap some debugging... .
It sounds like its crashing somewhere in the internals of your plugin .
That means that you have a nil object where you expected a real object .
|
|
More and more sites are displaying the number of views (and clicks like on dzone.com) certain pages receive. What is the best practice for keeping track of view #'s without hitting the database every load?
I have a bunch of potential ideas on how to do...
Started by PStamatiou on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Doesn't matter much anyway since, on a busy site, in the time a visitor goes through the page, a whole.
|
|
Displaying a View inside a Region is about 5-10 seconds slow for the first time, and UI freezes for that period in my Prism Composite WPF application. In subsequent times View is loaded relatively faster without any UI freezing. View is composed of a ...
Started by Raj on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
In a Data Grid, you will see a significant amount of time being spent drawing the elements will be created....
Most likely, your View is loading it will not work.
This will tell you without a doubt where your bottleneck is .
And in the program.
|
|
Say my user is viewing messages/index, and someone else sends him a message. I'd like the user's view to update in real-time to reflect the new message, kind of like how Twitter lets me know there are more messages on my timeline. Are there any examples...
Started by Euwyn on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Note that this requires Flash to be installed on the client... .
You can either use AJAX to poll the server for updates on a regular basis (pull model), or use the Juggernaut plugin or similar to enable the server to send updates to the client (push model) .
|
|
Hi
I am using a custom title view in my application for each activity. In one of the activities, based on button clicks I need to change the custom title view. Now this works fine every time when I make a call to setFeatureInt.
But if I try to update ...
Started by lostInTransit on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Are you calling invalidate or postInvalidate to redraw the view after updating the text? If it's a custom View, can you put a breakpoint in the draw code to make sure it's getting called?
If you're on the UI thread, you can call 'invalidate....
|
|
I'd like to build a view that allows the user to get a list of things that are happening around a certain time.
What is the best way to build this request? E.g. If I wanted to get all of the events that are happening right now I could post to /events/...
Started by theycallmemorty on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
/events/2009/ -> all the events in 2009 /events/2009/09/ -> all the events in Aug-09 /events/2... .
You could do something like this:
var d = new Date("2009-09-30"); var timestamp = d.getTime()/1000.0;
This will get you a timestamp using JavaScript .
|